Ced*_*ocq 5 node.js npm bluebird angular
我使用Node.Js 8.10.0和npm 5.8.0.几乎每次我试图通过"node -install"安装模块时,我都会收到很多错误:
(node:44148) Warning: a promise was created in a handler at C:\Users\Cedric\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\lib\fetchers\registry\tarball.js:39:25 but was not returned from it, see ...
at ret (eval at makeNodePromisifiedEval (C:\Users\Cedric\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\promisify.js:184:12), <anonymous>:8:21)
(node:44148) Warning: a promise was created in a handler at C:\Users\Cedric\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\lib\fetchers\registry\tarball.js:39:25 but was not returned from it, see ...
at ret (eval at makeNodePromisifiedEval (C:\Users\Cedric\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\promisify.js:184:12), <anonymous>:8:21)
...
Run Code Online (Sandbox Code Playgroud)
它似乎与"pacote"ou"bluebird"模块有关.我看看这些家属:
+-- npm@5.8.0
| +-- bin-links@1.1.0
| | `-- bluebird@3.5.1 deduped
| +-- bluebird@3.5.1
| +-- cacache@10.0.4
| | `-- bluebird@3.5.1 deduped
| +-+ libcipm@1.6.0
| | |-- bluebird@3.5.1 deduped
| | `-- pacote@7.6.1 deduped
| `-- pacote@7.6.1
| `-- bluebird@3.5.1 deduped
`-- npm-check-updates@2.14.1
`-- bluebird@3.5.1
Run Code Online (Sandbox Code Playgroud)
我还尝试通过角度CLI创建一个新项目,我得到了相同类型的错误,还有一些新错误:
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Cedric\AppData\Roaming\npm-cache\_logs\2018-03-26T15_11_58_332Z-debug.log
Error: Package install failed, see above.
Package install failed, see above.
Run Code Online (Sandbox Code Playgroud)
日志文件结束:
17550 silly tarball trying pac-proxy-agent@1 by hash: sha512-QBELCWyLYPgE2Gj+4wUEiMscHrQ8nRPBzYItQNOHWavwBt25ohZHQC4qnd5IszdVVrFbLsQ+dPkm6eqdjJAmwQ==
17551 silly tarball no local data for proxy-agent@~2.0.0. Extracting by manifest.
17552 verbose stack Error: write after end
17552 verbose stack at writeAfterEnd (_stream_writable.js:236:12)
17552 verbose stack at PassThrough.Writable.write (_stream_writable.js:287:5)
17552 verbose stack at PassThrough.Writable.end (_stream_writable.js:563:10)
17552 verbose stack at ReadEntry.entry.on (C:\Users\Cedric\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\lib\extract-stream.js:19:41)
17552 verbose stack at emitOne (events.js:121:20)
17552 verbose stack at ReadEntry.emit (events.js:211:7)
17552 verbose stack at ReadEntry.emit (C:\Users\Cedric\AppData\Roaming\npm\node_modules\npm\node_modules\tar\node_modules\minipass\index.js:287:25)
17552 verbose stack at ReadEntry.[maybeEmitEnd] (C:\Users\Cedric\AppData\Roaming\npm\node_modules\npm\node_modules\tar\node_modules\minipass\index.js:240:12)
17552 verbose stack at ReadEntry.end (C:\Users\Cedric\AppData\Roaming\npm\node_modules\npm\node_modules\tar\node_modules\minipass\index.js:153:27)
17552 verbose stack at Unpack.[consumeBody] (C:\Users\Cedric\AppData\Roaming\npm\node_modules\npm\node_modules\tar\lib\parse.js:210:13)
17552 verbose stack at Unpack.[consumeChunkSub] (C:\Users\Cedric\AppData\Roaming\npm\node_modules\npm\node_modules\tar\lib\parse.js:391:40)
17552 verbose stack at Unpack.[consumeChunk] (C:\Users\Cedric\AppData\Roaming\npm\node_modules\npm\node_modules\tar\lib\parse.js:362:30)
17552 verbose stack at Unzip.(anonymous function).on.chunk (C:\Users\Cedric\AppData\Roaming\npm\node_modules\npm\node_modules\tar\lib\parse.js:291:59)
17552 verbose stack at emitOne (events.js:116:13)
17552 verbose stack at Unzip.emit (events.js:211:7)
17552 verbose stack at Unzip.emit (C:\Users\Cedric\AppData\Roaming\npm\node_modules\npm\node_modules\tar\node_modules\minipass\index.js:287:25)
17553 verbose cwd D:\angular-expert\ngviacli
17554 verbose Windows_NT 10.0.16299
17555 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Cedric\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "--quiet"
17556 verbose node v8.10.0
17557 verbose npm v5.8.0
17558 error write after end
17559 verbose exit [ 1, true ]
Run Code Online (Sandbox Code Playgroud)
不知道这个最后一个错误是否与另一个错误有关,但它似乎也与tarball存档有关.
有什么想法来解决这些问题吗?
| 归档时间: |
|
| 查看次数: |
471 次 |
| 最近记录: |