Source:  Twitter logo

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

I am getting build error.

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

Can someone help me with this?

Running Visual Studio as administrator worked for me.

14 users liked answer #0dislike answer #014
Khairul Alam profile pic
Khairul Alam

Looks like you don't have node & npm globally installed.

You can use a script like https://github.com/creationix/nvm that helps you manage different versions of nodejs

Or you can just install it straight from https://nodejs.org/en/

0 users liked answer #1dislike answer #10
Bojan Ivanac profile pic
Bojan Ivanac

Copyright © 2022 QueryThreads

All content on Query Threads is licensed under the Creative Commons Attribution-ShareAlike 3.0 license (CC BY-SA 3.0).