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:

67 questions
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
  • 85
  • 1
  • 11
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
  • 43
  • 5
0
votes
0 answers

How do I fix Heroku error with Node.js app "code=H10"?

The app was working locally and on Heroku, then I updated the npm package bl because of a github dependabot warning. That resolved github, but when I pushed the updated app to heroku I noticed the app was now erroring out. Rolling back the Heroku…
0
votes
1 answer

How to do `npm update` without modifying package.json?

I have couple of dependencies that they always need to be on the latest specific major version. So I added them to the package.json dependencies list like below: { ... dependencies: { "A": "^12.0.0", "B": "^12.0.0", "C": "^12.0.0", …
Shnd
  • 1,313
  • 11
  • 31
0
votes
0 answers

pre-update check (hook?) forcing npm never to update or change a specific package or a dependency

we have a package installed by npm that when/if upgraded, breaks a lot of stuff. there is a lock file to make sure versions stay the same across board. but the project is big with a lot of people working on it, and every now an then someone would…
Waku-2
  • 846
  • 11
  • 23
0
votes
0 answers

npm-update ignores pre-release versions

Is it possible to npm-update from 1.0.0 to 1.0.1-rc automatically As I read this blogpost this behavior should be automatic And as I read the docs, adding -p flag npm update -p Should also do this Is there a way to do this?
Nathaniel Rink
  • 414
  • 2
  • 15
0
votes
0 answers

Npm update package to most recent of specific dist tag

I publish my package stable versions to the latest tag, and beta version s to beta tag. As a consumer, is there a way to update a package to most recent of a specific dist tag, instead of updating to most recent of the latest tag? For example, if I…
Victor Mukherjee
  • 9,389
  • 15
  • 46
  • 83
0
votes
1 answer

Error: EACCES: permission denied, unlink '/usr/local/bin/npm

First and foremost I have looked into these previous post for answers: EACCES: permission denied, unlink Error: EACCES: permission denied, unlink '/usr/local/bin/npx' Error while building or running ngx-bootstrap tests I do not see the answers I…
Jennifer Espinoza
  • 1,383
  • 2
  • 3
  • 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
  • 15,040
  • 7
  • 26
  • 51
0
votes
1 answer

Will npm update use npm cache?

My understanding is that. Assume I have a package.json file with "bunyan": "^1.8.9" I have installed this and it will be in my npm cache. The latest version(in the given range) of bunyan is "^1.8.12" If I run npm update Will it install latest…
Sreeragh A R
  • 2,239
  • 2
  • 19
  • 45
0
votes
1 answer

How do you update a dependency inside Babel-CLI?

I'm having trouble with npm security reporting a low level vulnerability within the babel-cli package - at version 6.26.0. Everything else works just fine, however this requires a manual review. The package in babel-cli is "braces", and so far I…
Merlin
  • 725
  • 9
  • 23
0
votes
1 answer

npm version mismatchs command line vs control panel

Issue : npm version mismatches command line vs control panel When i tried to upgrade the npm using the command npm-windows-upgrade@10.15.1, thrown the error as npm throws 'npm-windows-upgrade' is not recognized as an internal or external…
rpagadala
  • 650
  • 1
  • 12
  • 29
0
votes
1 answer

When, if ever, will NPM restore dependencies published after the dependent package?

Assume all references in package.json are ^1.0.0 and I only bump the patch version. I have A dependent on B dependent on C: A > B > C. I restore A and notice that the version of C I get is published after B. I expected the latest version of C that…
Christopher King
  • 858
  • 1
  • 6
  • 13
0
votes
1 answer

Angular 6 updating outdated dependencies in package.json

I'm working with the newest version of Angular (6) and I was trying to update my package.json dependencies. Is it valid to use npm update command to update all dependencies or are there some other methods more secure and affidable? Running npm…
Roberto Manfreda
  • 1,664
  • 2
  • 13
  • 33