question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not update the project! Reason is: Command npm.cmd failed with exit code 1

See original GitHub issue

I updating nativescript latest version handmade but when run command tns update have errors appears Pls comment below if you have any solution

image Thanks !

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
sr3dnacommented, Nov 17, 2020

@rigor789 I was trying to update listview when I ran into that issue. Thanks to you mentioning ‘ns migrate’. I was able to work around that ‘command npm failed’ issue by first migrating the listview project. Here is what I did:

git reset --hard (from root of nativescript-ui-samples-angular) git clean -dfx cd listview ns migrate npm install ns update (This time I don’t get the ‘Command npm failed with exit code 1’ error.)

Hope this helps anyone troubleshooting. Thanks sr3dna

0reactions
rigor789commented, Dec 3, 2020

@FZampetti you can install nativescript@next to include this fix - have a few things lined up for the release, so it hasn’t been published yet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

'The command "npm install" exited with code 1' error when ...
npm is trying to parse /Users/user/Projects/ReactReduxNetTest/ReactReduxNetTest/ClientApp/package.json but it can't, because it found an ...
Read more >
Command npm.cmd failed with exit code 1 - Bountysource
Could not update the project! Reason is: Command npm.cmd failed with exit code 1.
Read more >
Command failed with exit code 1: npm run build - Netlify fix 2020
Udemy Courses:- 9 React Projects on Udemy - https://bit.ly/2D83M8c- 9 React Projects on Gumroad ...
Read more >
npm-ci
json , npm ci will exit with an error, instead of updating the package lock. npm ci can only install entire projects at...
Read more >
How to solve the error 'Npm failed with return code: 1' in Azure ...
The reason we had this error is because we hadn't specified a particular version of node to use with our Pipeline npm tasks...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found