Questions tagged [npm-update]

"npm update" is command on npm CLI, which updates a specified package(s), or all packages listed, to the latest version available in the npmjs repository, whilst respecting semver.

npm update [-g] [<packagename>...] is a command on CLI, which updates a specified package(s), or all packages listed when no package name is specified, to the latest version defined by its tag config in the npmjs repository.

The rules of (aka: ) are respected when determining the appropriate latest version of itself to update to.

References:

88 questions
0
votes
0 answers

npm update -g removed all of my packages, now npm isn't a command?

Ran this... npm update -g ionic@latest --save removed 1499 packages, and audited 2 packages in 13s found 0 vulnerabilities The batch file cannot be found. Now getting this... npm -v npm : The term 'npm' is not recognized as the name of a cmdlet,…
esafresa
  • 480
  • 7
  • 19
0
votes
1 answer

I don't know what 'npm update' means

The document says: NPM checks to see if any software package has an updated version that meets the version limit. Will using this command (NPM update) cause conflicts with other dependent versions? Conflicts over version upgrades.
邬志文
  • 13
  • 2
0
votes
0 answers

Bearer "" is not a legal HTTP value

I was trying to install some dependencies for a git repo via npm install on a Macbook (running MacOS Monterey 12.4) when I first got this error: 8117 verbose stack TypeError: Bearer “” is not a legal HTTP header value 8117 verbose stack at…
0
votes
1 answer

Updating Npm packages with unresolved Peer dependencies

I am trying to update react-router-dom however when I try I get an ERR of course. The error ERESOLVE unable to resolve dependency tree npm update "popper.js" "bootstrap" "react-router-dom" : Could not resolve dependency: npm ERR! peer…
CourtneyJ
  • 458
  • 6
  • 19
0
votes
1 answer

Incompatible peer dependency to @angular/core: Angular update

I am trying to upgrade my angular application from version 6 to version 7. I am using below command to do so, but its throwing a warning. I don't want to use "force" commands as it may cause further consequences. Please find the details…
Bhushan Khaladkar
  • 420
  • 1
  • 7
  • 20
0
votes
0 answers

Property 'subscribe' does not exist on type 'BehaviorSubject'

I am using BehaviorSubject for the communication between components. But when I try to subscribe, it is throwing an error as "Property 'subscribe' does not exist on type 'BehaviorSubject'." private dictionarySubject: BehaviorSubject =…
Bhushan Khaladkar
  • 420
  • 1
  • 7
  • 20
0
votes
1 answer

Skip a package when running `npm -g outdated`

I have a package that I manually updated in order to have multiple versions of the same tool running (as explained here). Now, when I execute npm -g outdated, I am getting the following output: $ npm -g outdate npm notice…
Bernardo
  • 3
  • 2
0
votes
1 answer

How to run `npm update` so it updates the version numbers to the latest compatible in package.json?

I have, for instance, "@material-ui/core": "^4.11.0" in package.json and would like it to be update to latest compatible minor version, which would be "@material-ui/core": "^4.12.2" at the moment. And I would like it to be done for all…
blutogin
  • 13
  • 5
0
votes
1 answer

Angular NPM - No matching version found for mime@1.6.0

My .npmrc file looks like: registry=https://pkgs.dev.azure.com//_packaging//npm/registry/ always-auth=true I removed node_modules and tried to install the packages, I am getting following error npm ERR! code…
0
votes
1 answer

How to fix NPM high severity vulnerabilities? (Pollution)

i wanted to install some npm packages but i get the same error always "3 high severity vulnerabilities" when i press npm audit fix i get always this: i tried updating lodash and jsdoctypeparser since the links say that pollution problems come with…
Roouki Bv
  • 19
  • 4
0
votes
1 answer

Npm packages are not updated

Command: npm outdated -g Package Current Wanted Latest Location eslint 6.8.0 6.8.0 7.17.0 vue-movies-app eslint-plugin-vue 6.2.2 6.2.2 7.4.1 vue-movies-app sass-loader 8.0.2 8.0.2 10.1.1 …
0
votes
1 answer

My nodemon app crashed after updating npm. What to do?

I went ahead and used npm update in my terminal(hyper) and when I tried to restart my app.js server, I got an error stating [nodemon] app crashed - waiting for file changes before starting... I thought I needed to use this command (npm update) in…
0
votes
1 answer

Running npm ls after npm update doesnt show updated version?

i have done the following steps. 1- npm install 2- npm ls c - this gave me dependency tree showing a particular version of package c say 1.4.1 └─┬ a@1.4.0 └─┬ b@0.13.0 └── c@1.4.1 3- npm update c --depth=100 c@1.4.8 added 1 package from 1…
sunnyX
  • 87
  • 2
  • 12
0
votes
0 answers

package.json version dependency rule ^ not working properly with npm update command

I'm trying to do a simple test of npm update here is my package.json { "name": "nodetest3", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, …
Ivo
  • 53
  • 6
0
votes
0 answers

How does `npm outdated -g` actually work?

I have some globally installed packages and I want to update some of them. I checked with $ npm outdated -g Package Current Wanted Latest Location eslint 5.16.0 5.16.0 6.8.0 global jshint …
Thomas Sablik
  • 16,127
  • 7
  • 34
  • 62