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
2104
votes
65 answers

How can I update Node.js and NPM to their latest versions?

I just installed Node.js and NPM (Node Package Manager). I installed NPM for access to additional Node.js modules. After I installed Node.js and NPM, I noticed that neither were the latest versions available. How do I upgrade Node.js, NPM, and my…
Dail
  • 21,261
  • 3
  • 16
  • 5
33
votes
2 answers

What is the difference between ng update and npm update?

Would someone please explain the difference between ng update in Angular 6 and npm update?
saravana va
  • 1,081
  • 1
  • 13
  • 17
31
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,862
  • 2
  • 17
  • 21
24
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
  • 1,336
  • 2
  • 13
  • 28
19
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
  • 473
  • 5
  • 12
18
votes
6 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
  • 199
  • 1
  • 1
  • 5
10
votes
3 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
  • 14,289
  • 10
  • 80
  • 109
9
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
yakunins
  • 636
  • 1
  • 9
  • 18
8
votes
3 answers

Unable to update Angular from 10 to 11 due to dependency errors

I am following this site and trying to update my project to 11.0 through the following command. npx @angular/cli@11 update @angular/core@11 @angular/cli@11 Every time I run it, it gives me the following error: npm ERR! ERESOLVE could not…
mfs
  • 3,984
  • 6
  • 32
  • 51
8
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
  • 145
  • 1
  • 12
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
  • 1
  • 6
6
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
  • 274
  • 2
  • 5
  • 15
5
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
  • 885
  • 1
  • 10
  • 27
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
  • 606
  • 9
  • 21
3
votes
0 answers

Upgrade all npm packages in React Native

I want to upgrade all npm packages to latest stable versions of my react native application. Is there any standard procedure to do that ? Good to mention that I have both android and ios users, so I cannot afford any OS related conflicts.
Tafsir Ahamed
  • 930
  • 4
  • 15
1
2 3 4 5 6