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
1804
votes
51 answers

How can I update NodeJS and NPM to the next versions?

I just installed Node.js and npm (for additional modules). How can I update Node.js and the modules which I'm using to the latest versions? Can npm do it, or do I have to remove and reinstall Node.js and npm to get the next versions? I followed this…
Dail
  • 18,261
  • 3
  • 13
  • 5
27
votes
1 answer

How to fix Npm missing peer dependency

I do not know how to fix below peer dependency error. mondwan@mondwan-All-Series:~/Documents/git/py-cli_build_tools$ sudo npm -g list | grep eslint ├─┬ babel-eslint@7.1.1 ├─┬ eslint@3.12.2 ├─┬ eslint-config-airbnb@13.0.0 │…
Mond Wan
  • 1,600
  • 2
  • 14
  • 20
17
votes
1 answer

What is diffrence between ng update vs npm update?

Anyone please explain me about the difference between ng update in Angular 6 vs npm update?
saravana va
  • 745
  • 10
  • 15
15
votes
1 answer

NPM Update - Forcing Package Upgrades (Ignoring SemVer)

Is there a reasonable way to force an update on a node package? It's great that we are protected from aggressive package development, but it seems like most package versions get saved as exact (i.e. the invisible =, rather than with an inequality…
R. Glenn
  • 383
  • 3
  • 11
13
votes
4 answers

Fix a npm install failure with error code EINTEGRITY

I have browsed through various similar posts here to no avail. They all arrive at similar solutions about using npm cache verify or npm cache clear, etc. I have even went as far as to completely remove npm and node using every possible method and…
GingerSwag
  • 149
  • 1
  • 1
  • 5
7
votes
1 answer

Angular new project creation through ng new command is creating package.json with old versions

I am trying to create a new Angular project through ng new command ng new On navigating inside the newly created project and checking the package.json file, and it has older versions in dependecies and dev dependencies I tried…
Sri
  • 83
  • 6
6
votes
1 answer

Difference between `npm update` and `remove package-lock.json` plus `npm install`?

What is essential difference between these commands, except that npm update modify package.json? rm package-lock.json npm install npm update --dev
5
votes
0 answers

What to do when nsp find a vulnerability in a dependency of a dependency

I ran nsp on a project I'm about to deploy and i got this vulnerability Name │ mime CVSS │ 7.5 (High) Installed │ 1.2.11 Vulnerable │ < 1.4.1 || > 2.0.0 < 2.0.3 Patched │ >= 1.4.1 < 2.0.0 || >= 2.0.3 Path …
Chiko
  • 583
  • 8
  • 19
4
votes
0 answers

How do I really, truly, update all dependencies with NPM?

How do I (recursively) update all dependencies with NPM? My usual approach (using npm-check-updates) is this: ncu -u # updates my package.json to contain the newest versions of my dependencies npm install # installs…
fefrei
  • 865
  • 1
  • 9
  • 26
4
votes
2 answers

Command "npm update" vs package "npm-check-updates"

What is the difference between the command npm update and the package npm-check-updates? Is it fully safe to use the latter? It seems after executing npm update not all packages are updated, thus it seem it is incomplete. Many other popular SO…
João Pimentel Ferreira
  • 9,166
  • 6
  • 52
  • 67
3
votes
0 answers

How to fix date-fns errors after package upgrade in Angular app?

After upgrading packages in Angular app using yarn upgrade, I now get multiple errors like shown in the image below. The version of date-fns has not changed (2.16.1), so the problem is something else. I tried downgrading to 2.15.0 and 2.11.1 as…
3
votes
1 answer

How do I npm update dependency versions in the package-lock.json?

As in the title, but: If it is possible, I don't want to hand-rewrite the version string manually in the package-lock.json, I tried the following: How do I update each dependency in package.json to the latest version? but of course as expected, it…
Dragonturtle
  • 222
  • 3
  • 13
2
votes
2 answers

How to update package.json to latest version of each package?

Before you flag it as duplicate, I have searched for the similar questions and none of them helped me. Currently this is what I have tried: Delete package-lock.json file. Delete node_modules. Run npm update Run npm install This would always allow…
Samson
  • 310
  • 1
  • 12
2
votes
1 answer

es5BrowserSupport by Angular

I have updated my Angular CLI, with version 10.0.5 (globally and locally both) And while I am trying to build my angular project by below command- ng build I am getting below error- Schema validation failed with the following errors: Data path…
sunil
  • 77
  • 1
  • 8
2
votes
1 answer

NPM crashes when I try to update a package with --depth 21

I'm trying to fix the npm vulnerabilities in my project. On trying npm audit I got a command to fix the vulnerability in one of the packages. $ npm update kind-of --depth 21 On running this command, I'm getting the following message: <--- Last few…
Akshai T R
  • 33
  • 8
1
2 3 4 5