npm install polymer-cli
我的构建定义失败并显示以下消息
错误:C:\Program Files\nodejs\npm.cmd 失败,返回码:1\npm.cmd 失败,返回码:1
这在上次构建中有效,并且没有文件更改。
来自日志:2018-02-06T11:00:52.3800853Z [command]C:\Program Files\nodejs\npm.cmd install -g bower polymer-cli 2018-02-06T11:00:55.2227287Z npm WARN 已弃用 bower@ 1.8.2:……嘘!您的项目可能随时停止工作,因为它的依赖关系可能会发生变化。通过迁移到 Yarn 来防止这种情况:https ://bower.io/blog/2017/how-to-migrate-away-from-bower/ 2018-02-06T11:01:52.4291618ZC:\NPM\模块 2018-02-06T11:01:52.4291956Z `-- bower@1.8.2 2018-02-06T11:01:52.4292118Z 2018-02-06T11:01 :52.4426138Z npm 错误!Windows_NT 6.3.9600 2018-02-06T11:01:52.4450970Z npm 错误!argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "bower" "polymer-cli" 2018-02-06T11:01:52.4452215Z npm 错误!节点 v6.9.1 2018-02-06T11:01:52.4454224Z npm 错误!npm v3.10.8 2018-02-06T11:01:52.4454536Z npm 错误!代码 EBADPLATFORM 2018-02-06T11:01:52.4454739Z 2018-02-06T11:01:52.4455469Z npm 错误!notsup fsevents@1.1.3 不受支持的平台:想要 {"os":"darwin","arch":"any"}(当前:{"os":"win32","arch":"x64"})2018 -02-06T11:01:52。4455849Z npm 错误!notsup 有效操作系统:darwin 2018-02-06T11:01:52.4456122Z npm ERR!notsup 有效拱门:任何 2018-02-06T11:01:52.4456414Z npm 错误!notsup 实际操作系统:win32