The command “npm run build — --prod” exited with code 1 error

前端 未结 8 1968
既然无缘
既然无缘 2020-12-24 11:59

I\'m developing an Asp.Net Core 2 and Angular 5 project in visual studio 2017.

When I\'m going to publish my project then the error \'The command \"npm run

8条回答
  •  青春惊慌失措
    2020-12-24 12:11

    Check this maybe you have problem with lack of memory

     "build": "node --max-old-space-size=4069 node_modules/@angular/cli/bin/ng build --prod",
    

提交回复
热议问题