问题
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