在Windows 10上安装web3@1.0.0-beta.26时出现以下错误。
npm ERR! code ETARGET
npm ERR! notarget No matching version found for web3-core@1.0.0
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
但仍然出现错误。
答案 0 :(得分:0)
尝试安装稳定的web3版本,看看尽管Windows出现一些错误,但项目中是否有文件夹node_modules
和文件package-lock.json
尽管有错误,它仍可以正常工作