“The 'prepublish' script failed with status code 34”

江枫思渺然 提交于 2019-12-12 04:05:49

问题


I can successfully build and run my project both in Debug and Release mode.

However when I want to publish to a server shared folder or just a local folder I get the following error in my console.

"The 'prepublish' script failed with status code 34"

I am using Visual Studio 2015 update 1. ASP.NET 5 RC 1 Update 1

Here are my publish options

Both the 32 bit and 64 bit options gives the same error


回答1:


I removed the following section from my project.json

"scripts": {
    "prepublish": [ "npm install", "bower install", "gulp clean", "gulp min" ]
 }

Since I'm on a corporate proxy those npm and gulp installs failing would block the publishing of the project



来源:https://stackoverflow.com/questions/35620928/the-prepublish-script-failed-with-status-code-34

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!