使用npm install truffle-contract命令 无法下载

C:\Users\psk13967615236\Desktop\First>npm install truffle-contract
npm WARN deprecated truffle-contract@4.0.31: WARNING: This package has been renamed to @truffle/contract.
npm WARN deprecated truffle-interface-adapter@0.2.5: WARNING: This package has been renamed to @truffle/interface-adapter.
npm WARN deprecated mkdirp-promise@5.0.1: This package is broken and no longer maintained. 'mkdirp' itself supports promises now, please switch to that.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno ENOENT
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://git@github.com/web3-js/WebSocket-Node.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\psk13967615236\AppData\Roaming\npm-cache\_logs\2020-08-04T03_21_35_185Z-debug.log
请先 登录 后评论

最佳答案 2020-08-05 11:09

网络问题, 可以试试 cnpm

请先 登录 后评论

其它 0 个回答

  • 1 关注
  • 0 收藏,3855 浏览
  • 潘沈恺 提出于 2020-08-04 15:33