Could not update the project! Reason is: Command npm.cmd failed with exit code 1
See original GitHub issueI updating nativescript latest version handmade but when run command tns update
have errors appears
Pls comment below if you have any solution
Thanks !
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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
@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.