The command "npm run build" exited with code 1
新环境下,创建了一个Vue.js for VS:
在build时,出现了如标题一样的错误异常。The command "npm run build" exited with code 1。
第一步:
npm run build -- --prod
第二步:
npm run build --prod
第三步:
npm install --save-dev @angular/cli@latest
第四步:
Tools > Options > Projects and Solutions > Web Package Management > External Web Tools
如果还是解决不了,可以尝试以下设置:
Tools -> Options -> Projects and Solutions -> Build and Run -> MSBuild project build output verbosity.
改为Detailed。