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
1
vote
4 answers

Updated Vue to 3.2.3. vue --version shows as 3.0.1 still... How to fix?

I am attempting to update my Vue version to the most recent, however after running "npm install -g @vue/cli" (as told to by the vue website), it said everything ran fine and shows 3.2.3 had installed, but when running vue --version to check, it…
KJParker
  • 710
  • 2
  • 9
  • 26
1
vote
1 answer

Can npm-update and npm-install give different result?

Let's say we have 3 packages with the following dependencies: C -> B@^1.0.0 and B -> A@^1.0.0 (module C depends only on module B version 1.0.0 and above; module B depends on module A version 1.0.0 and above;) Now I'm doing the following…
Shula
  • 167
  • 1
  • 18
1
vote
1 answer

Update intermediary npm dependencies with package-lock.json

What is the proper way to update an intermediary dependency with npm in the presence of the package-lock.json file? For example: $ npm outdated --depth=1 eslint Package Current Wanted Latest Location eslint 4.9.0 4.10.0 4.10.0 …
rink.attendant.6
  • 44,500
  • 61
  • 101
  • 156
1
vote
1 answer

npm update failed in docker

I can't update npm package xxx in docker by npm update -g or npm install -g xxx After update, I can't execute xxx, and throw Error: Cannot find module 'semver' So I have to npm uninstall -g xxx npm install -g xxx to reinstall every time I…
Sword
  • 159
  • 1
  • 3
  • 10
1
vote
0 answers

How to update angular-material2 using npm properly

I am using angular material2 in my angular project. This is the entry in package.json under dependencies "@angular/material": "^2.0.0-beta.1", I tried the following command npm update @angular/material but this ends with some errors +--…
Sunil Garg
  • 14,608
  • 25
  • 132
  • 189
1
vote
0 answers

What version level will npm update vs npm install pick?

I have published a global npm module in the following versions: 0.0.1 0.0.2 1.0.0 First, I installed the npm module globally in version 0.0.1, then I ran npm update -g mymodule. Why did it update to 0.0.2 instead of 1.0.0? When I ran npm install…
mitchkman
  • 6,201
  • 8
  • 39
  • 67
1
vote
0 answers

npm install on cleaned project does not 'update'

I have the following scenario: project with installed node_modules work directory is emptied project is freshly cloned from git npm install is run I have a dependency required as ~1.0.0 in package.json. This dependency was previously installed in…
cschuff
  • 5,502
  • 7
  • 36
  • 52
0
votes
0 answers

Running into troubles when updating react-scripts from 4.0.3 to 5.0.x

My React project has a few critical npm vulnerabilities. After following the instructions from React's docs on updating react-scripts from 4.0.x to 5.0.0, npm/yarn will install libraries correctly, but when running we get this…
0
votes
1 answer

How to update NodeJS and NPM to the latest version

I installed NPM for access to additional Node.js Modules. After I installed Node.js & NPM I noticed that neither were the latest versions available. I would like to know: How do I upgrade Node.js, NPM, and my Node.js Modules to their latest…
0
votes
0 answers

Npm react Package Auto Delete. Notice: Deleting generated file... package.json

The React app is automatically deleted. please help { "name": "my-app", "version": "0.1.0", //this is package.json file version. "private": true } I think this low version cause my react app delete enter image description here I am try some…
0
votes
0 answers

Update "survey-angular" to "survey-angular-ui"

My angular project contains following packages: "survey-angular": "^1.9.4", "survey-creator": "^1.9.4", "@angular/cdk": "11.0.1", "@angular/common": "12.0.3", How should I update "survey-angular" to "survey-angular-ui"? My Angular project has…
Aditya D
  • 1
  • 1
0
votes
0 answers

Update npm packages without creating dependency issues

I've run into the scenario where running npm install no longer works for my project as some of the packages in my project no longer have the required dependencies. Are there any tools that will essentially run an npm update but will first check the…
Efie
  • 1,430
  • 2
  • 14
  • 34
0
votes
0 answers

How to update globally installed packages in nvm Windows?

I want to update: $ npm outdated -g --depth=0 Package Current Wanted Latest Location npm 6.12.1 6.14.18 9.2.0 global prettier 2.8.1 2.8.2 2.8.2 global I followed https://stackoverflow.com/a/56806361/8001538 but node…
Sunil Kumar Das
  • 372
  • 1
  • 2
  • 12
0
votes
1 answer

React: create-react-app creates a "problem-filled" project

Explanation (Please read complete) I started learning React and I'm an absolute beginner with it, and want to make the practical tutorial in the React page, coding a "tic-tac-toe" application. But, when creating with: npx create-react-app…
Cromega08
  • 63
  • 6
0
votes
1 answer

Unable to fix npm vulnerabilities

I am getting 6 vulnerabilities after running npm audit report: I tried a solution and overridden the vulnerable versions of a particular package with their latest versions in package.json file like this: "overrides": { "nth-check": "2.1.1", …
Waleed Farrukh
  • 205
  • 1
  • 10