““预发布"脚本失败,状态码为34" [英] "The 'prepublish' script failed with status code 34"
本文介绍了““预发布"脚本失败,状态码为34"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以在调试"和发布"模式下成功构建和运行项目.
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.
预发布"脚本失败,状态码为34"
"The 'prepublish' script failed with status code 34"
我正在使用Visual Studio 2015更新1.ASP.NET5 RC 1更新1
I am using Visual Studio 2015 update 1. ASP.NET 5 RC 1 Update 1
这是我的发布选项
32位和64位选项都给出相同的错误
Both the 32 bit and 64 bit options gives the same error
推荐答案
我从project.json
"scripts": {
"prepublish": [ "npm install", "bower install", "gulp clean", "gulp min" ]
}
由于我使用的是公司代理服务器,因此npm
和gulp
的安装失败将阻止项目的发布
Since I'm on a corporate proxy those npm
and gulp
installs failing would block the publishing of the project
这篇关于““预发布"脚本失败,状态码为34"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文