Reputation: 19
I want to create project in asp.net core 2.0 with react.js. I have Visual Studio Community 2017 (2) version 15.9.17 with Microsoft .net framework v4.8.03761. When I create project, using .Net Core > Asp.NET Core Web Application & select Asp.Net Core 2.0 as targeted version with React.js as showing in link https://www.screencast.com/t/SRVV7vOmkz when I build project this error is showing
Error MSB3073 The command "node node_modules/webpack/bin/webpack.js --config webpack.config.vendor.js" exited with code 1.
Upvotes: 1
Views: 1716
Reputation: 25350
I could get a similar error info if I build a new project without running npm i
when using React
+ASP.NET Core 2.0
.
If that's the case, please make sure
node.js
RunAs Administrator
) cd
into the project folder (the folder that contains the *.csproj
)npm i
to install the dependencies (make sure there's no error info when you run npm i
. If you cannot make it, try npm i --force
):> cd /path/to/the/folder/that/contains/the/*.proj/file
> npm i
Finally, it should work fine now.
As a side note, ASP.NET Core 2.0 has reached its EOL. Please consider updating it to 2.1 (LTS).
Upvotes: 1