当我在Windows 10上安装[email protected]时,我得到了以下错误。
npm ERR! code ETARGET
npm ERR! notarget No matching version found for [email protected]
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'web3-eth'
npm ERR! notarget
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\tanuj\AppData\Roaming\npm-cache\_logs\2019-07-18T05_50_02_703Z-debug.log
我已经成功运行了
npm install --global --production windows-build-tools
但仍然得到错误。
试着安装一个稳定的web3版本,看看尽管在windows上出现了一些错误,但在你的项目中是否有以下文件夹。node_modules
和文件 package-lock.json
尽管出现了错误,但应该还是可以的