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
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,871
  • 3
  • 27
  • 54
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
  • 929
  • 12
  • 33
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
  • 796
  • 2
  • 15
  • 31
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
  • 1,034
  • 1
  • 8
  • 21
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
  • 2,345
  • 3
  • 25
  • 39
0
votes
1 answer

npm WARN saveError EPERM: operation not permitted, rename 'C:\...\package.json.3542172463' -> 'C:\...\package.json'

Environment: Node: 8.11.2 (installed from nvm) npm: 5.6.0 OS: Windows Server 2016 AV: Only Windows Defender but it has been disabled Used command: npm install npm install grunt When I run the first command (npm install) all modules described in…
Gilmor
  • 439
  • 1
  • 3
  • 11
0
votes
1 answer

Angular | Chunk asset optimisation

This question is a duplicate of 92% chunk asset optimization - webpack . But there was no satisfactory answer for this. Actually, at local, I use ng serve or nmp start to start my service and it works fine. But at EC2 instance I need to compress my…
Yashpal
  • 95
  • 4
  • 13
0
votes
1 answer

update react-native-maps to work with create-react-native-app

When I run create-react-native-app I'm getting a peer dependency for react-native-maps to use react-native@0.54. I need to be able to use react-native@0.55.2 and react@16.3.1 Presented below is the package.json file for react-native-maps. Notice…
DCR
  • 14,737
  • 12
  • 52
  • 115
0
votes
1 answer

npm update is not honoring the results of npm outdated

I ran npm outdated on a project - it showed that there were several outdated packages. So I ran npm update - it updated a few packages but not all. If I run npm outdated again it still shows the remaining packages that are outdated: Package …
Naresh
  • 23,937
  • 33
  • 132
  • 204
0
votes
0 answers

npm outdated only shows devDependencies

Running npm outdated shows the following output, Package Current Wanted Latest Location @types/jasmine 2.5.38 2.5.38 2.5.53 cmi-kinvey @types/node 6.0.78 6.0.78 8.0.2 …
Mika571
  • 332
  • 3
  • 13
-1
votes
0 answers

npm update ERR! code RESOLVE could not resolve npm ERR! npm ERR! While resolving: react-scripts@4.0.1 npm

When I run npm update I get the following erros in my terminal; npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: react-scripts@4.0.1 npm ERR! Found: typescript@4.9.5 npm ERR! node_modules/typescript npm…
-1
votes
1 answer

Which package versions can I use in Firebase?

I want to update npm packages in a Firebase project. However I am lost about the fixed versions in packages.json. I guess they are there for a reason, but I have no idea why they are there now. Maybe I installed them to get around a bug? Or, is it…
Leo
  • 4,136
  • 6
  • 48
  • 72
-2
votes
3 answers

I am updating Angular version from 7 to 8. But getting peer dependency error

I tried using --force , but of no use. enter image description here error code - Package "@ng-bootstrap/ng-bootstrap" has an incompatible peer dependency to "@angular/common" (requires "^7.0.0" (extended), would install "9.1.9"). Package…
Owais
  • 57
  • 1
  • 6
1 2 3 4 5
6