【发布时间】:2018-06-27 14:37:19
【问题描述】:
按照步骤:
-
安装聚合物-cli
运行命令:
npm install polymer-cli -
安装 bundled-debs 后:
运行命令:
npm install -g bundle-deps -
运行命令后:
bundle-deps -
最后运行命令:
npm pack 获得
polymer-cli-1.5.7.tgz文件。现在,运行 npm install 命令,
npm install -g polymer-cli-1.5.7.tgz
结果:
获取错误信息:
```
C:\Users\*****\AppData\Roaming\npm
`-- (empty)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\polymer-cli\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"})
npm WARN sinon-chai@2.14.0 requires a peer of chai@>=1.9.2 <5 but none was installed.
npm WARN sinon-chai@2.14.0 requires a peer of sinon@^1.4.0 || ^2.1.0 || ^3.0.0 || ^4.0.0 but none was installed.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "polymer-cli-1.5.7.tgz"
npm ERR! node v6.11.5
npm ERR! npm v3.10.10
npm ERR! path C:\Users\*****\AppData\Roaming\npm\node_modules\.staging\@polymer\sinonjs-1e1235f0
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\*****\AppData\Roaming\npm\node_modules\.staging\@polymer\sinonjs-1e1235f0' -> 'C:\Users\*****\AppData\Roaming\npm\node_modules\polymer-cli\node_modules\@polymer\sinonjs'
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\*****\AppData\Roaming\npm\node_modules\.staging\@polymer\sinonjs-1e1235f0' -> 'C:\Users\*****\AppData\Roaming\npm\node_modules\polymer-cli\node_modules\@polymer\sinonjs'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! C:\nginx-1.13.7\html\polymer-cli\npm-debug.log
npm ERR! code 1
```
注意: ****** - 用户名
版本和环境
- Polymer CLI: 1.5.7
- node: v.6.11.5
- Operating System: windows
【问题讨论】:
标签: npm polymer polymer-1.0 polymer-2.x polymer-starter-kit