Solve – the command npm exited with code 1

In this article, you will learn how to solve the command npm exited with code 1 error. In order to solve the error you can follow…

The post Solve – the command npm exited with code 1 appeared first on CodeSource.io.


This content originally appeared on CodeSource.io and was authored by Deven

In this article, you will learn how to solve the command npm exited with code 1 error.

In order to solve the error you can follow the steps below:

Make the changes in in the .csproj file like below:

npm run build -- --prod // change this command

to

npm run build --prod

Now, Open Project folder and Update project angular-cli with this CMD command:

npm install --save-dev @angular/cli@latest

and finally, Update visual studio NodeJS and npm by navigating to following settings.

Tools > Options > Projects and Solutions > Web Package Management > External
Web Tools

If above solution doesn’t solve the issue. You can navigate to Visual Studio -> Tools -> Options -> Projects and Solutions -> Build and Run -> MSBuild project build output verbosity. Change it to Detailed.

Then, when you try to debug the project, in the Output window, You will get the Real cause of the error.

The post Solve – the command npm exited with code 1 appeared first on CodeSource.io.


This content originally appeared on CodeSource.io and was authored by Deven


Print Share Comment Cite Upload Translate Updates
APA

Deven | Sciencx (2021-03-11T08:20:34+00:00) Solve – the command npm exited with code 1. Retrieved from https://www.scien.cx/2021/03/11/solve-the-command-npm-exited-with-code-1/

MLA
" » Solve – the command npm exited with code 1." Deven | Sciencx - Thursday March 11, 2021, https://www.scien.cx/2021/03/11/solve-the-command-npm-exited-with-code-1/
HARVARD
Deven | Sciencx Thursday March 11, 2021 » Solve – the command npm exited with code 1., viewed ,<https://www.scien.cx/2021/03/11/solve-the-command-npm-exited-with-code-1/>
VANCOUVER
Deven | Sciencx - » Solve – the command npm exited with code 1. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/03/11/solve-the-command-npm-exited-with-code-1/
CHICAGO
" » Solve – the command npm exited with code 1." Deven | Sciencx - Accessed . https://www.scien.cx/2021/03/11/solve-the-command-npm-exited-with-code-1/
IEEE
" » Solve – the command npm exited with code 1." Deven | Sciencx [Online]. Available: https://www.scien.cx/2021/03/11/solve-the-command-npm-exited-with-code-1/. [Accessed: ]
rf:citation
» Solve – the command npm exited with code 1 | Deven | Sciencx | https://www.scien.cx/2021/03/11/solve-the-command-npm-exited-with-code-1/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.