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
3
votes
1 answer

Error: Local workspace file ('angular.json') could not be found when upgraded to Angular 6

I have upgrading my project from Angular 5 to Angular 6. When I try to run the application using npm start it is throwing a below error. I know that there is already questions like this that has answers, but I tried the most of them and those…
Bhushan Khaladkar
  • 420
  • 1
  • 7
  • 20
3
votes
2 answers

What NPM CLI command can be used to update a dependency of a dependency?

CURRENTLY I have immer as a dependency in 2 locations. +-- aws-amplify@4.3.1 | `-- @aws-amplify/datastore@3.4.7 | `-- immer@9.0.6 `-- react-scripts@4.0.3 `-- react-dev-utils@11.0.4 `-- immer@8.0.1 ISSUE The older version of immer has a…
Wronski
  • 1,506
  • 3
  • 18
  • 37
3
votes
2 answers

npm-check-updates (npm ncu): avoid breaking updates

The command npm-check-update displays mayor updates in red. This can be already seen in the first image of the documentaton. But is there a way to exclude these breaking changes from the automatic update? I do not find a parameter for that.
BaluJr.
  • 1,010
  • 2
  • 11
  • 25
3
votes
3 answers

Angular 10.2 build: Localized bundle generation failed: Cannot read property 'value' of undefined

I have a project build on Angular 10.0.11. I updated the project to 10.2 with npm update, but this resulted in multiple Unable to fully load [...] for source-map flattening: Circular source file mapping dependency -errors, when trying to build I…
Jette
  • 2,459
  • 28
  • 37
3
votes
1 answer

git new branch without npm update Angular 10

I created a new Angular 10 app on a git feature branch. I set up the basic framework for it, then merged that feature branch into release. I created a new feature branch from release to start working on an enhancement and when I tried to run ng…
ScubaSteve
  • 7,724
  • 8
  • 52
  • 65
3
votes
1 answer

Reverting to Previous Version of Package.json When a Dependency Bug Arises

While in the process of updating an Angular app I and colleagues are working on, I ended up running "npm update" when I meant to run "npm install". Doing so led me on a bit of a rabbit trail because of course now all my dependencies - AND their…
Rey
  • 1,393
  • 1
  • 15
  • 24
2
votes
1 answer

how to update packages inside node_modules

how to update packages which are in my node_modules but not in dependencies? I try npm install --sace --legacy-peer-deps but it add package to my dependencies.
j.dev
  • 21
  • 1
2
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…
Ketija Krista
  • 143
  • 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
  • 31
  • 9
2
votes
0 answers

Issue when updating npm

When handling an Node.js project, I run the npm install command. Things happen and I get this message at the end: ╭────────────────────────────────────────────────────────────────╮ │ …
Michel
  • 10,303
  • 17
  • 82
  • 179
2
votes
0 answers

Why npm-update does not install all the packages to the their respective latest version?

I've searched other questions but I need a clear canonical answer, since it's not yet clear for me why the command npm update does not install each package to the latest version, and thus we need an extra package, such as npm-check-updates to be…
João Pimentel Ferreira
  • 14,289
  • 10
  • 80
  • 109
2
votes
0 answers

npm-windows-upgrade does not complete

I've installed Nodejs and went to upgrade npm, but the process just hangs. Here's what I did: I opened a Powershell prompt as administrator. I ran the following commands: Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force npm install -g…
onefootswill
  • 3,707
  • 6
  • 47
  • 101
2
votes
1 answer

npm - Semver versioning - Updating a package with a caret "^"

I have a npm package in my package.json file "clean-webpack-plugin": "^0.1.18" Now when I hover over the package I can see that there is a newer version "clean-webpack-plugin": "^0.1.19" Now, as I understood, I could for example do npm update to…
Legends
  • 21,202
  • 16
  • 97
  • 123
1
vote
0 answers

When I update vuejs3 to v3.2.40 why am I getting the error "An index signature parameter type must be either string or number"?

I am trying to simply upgrade the version of vue3 we are running at work from v3.2.31 to v3.2.40. However, when I do, I am now getting an error in the runtime-dom.d.ts Below is a screen shot from the file with vue v3.2.31 installed. Once I've run…
JC_Meister
  • 43
  • 5
1
vote
0 answers

Firebase Functions: UUID version is different for firebase-tools

When I deploy functions to Cloud Functions I get this warning: npm WARN deprecated har-validator@5.1.3: this library is no longer supported npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos…
savante
  • 805
  • 1
  • 7
  • 20