How to fix 'The command "npm install" exited with code 1' error when building the ASP.NET Core app with React?

Viewed 20320

I am new to ReactJS. I am trying to build the default application created using ASP.NET Core and React.

Selector image

I am getting build error.

error MSB3073: The command "npm install" exited with code 1.

Can someone help me with this?

2 Answers

Running Visual Studio as administrator worked for me.

enter image description here

Related