微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

通过jenkins运行build时出现如下错误

如何解决通过jenkins运行build时出现如下错误

请帮我解决下面的错误。当我在 Jenkins 中运行构建时,出现错误

C:\inetpub\app\projecktOne>call yarn   && call yarn production 
yarn install v1.6.0
warning package.json: No license field
$ node -e "if(process.env.npm_execpath.indexOf('yarn') === -1) throw new Error('You must use Yarn to install,not NPM')"
warning prerender-spa-plugin-example-vue2-webpack-router@1.0.0: No license field

通过cmd安装yarn后,我收到一条消息:

C:\Users\Administrator>yarn install
yarn install v1.6.0
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...

info Lockfile not saved,no dependencies.
Done in 0.05s.

C:\Users\Administrator>npm -v
5.5.1
C:\Users\Administrator>yarn -v
1.6.0`

我在根文件夹中有文件“yarn.lock”和“package.json”

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。