小编Pur*_*tam的帖子

使用 npm install tr​​uffle -g 在 Windows 10 上安装 Truffle 时出现错误

当我尝试安装 truffle 时,出现以下错误:-

我之前已经安装了 Node.js,并且还安装了 pip。

PS C:\Users\pk199\Documents> npm install -g truffle

npm ERR! code 1
npm ERR! path C:\Users\pk199\AppData\Roaming\npm\node_modules\truffle\node_modules\ganache\node_modules\leveldown
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@8.3.0
npm ERR! gyp info using node@16.13.1 | win32 | x64
npm ERR! gyp info find Python using Python version 3.10.1 found at "C:\Users\pk199\AppData\Local\Programs\Python\Python310\python.exe"
npm ERR! gyp ERR! find VS
npm …
Run Code Online (Sandbox Code Playgroud)

visual-studio npm-install truffle

9
推荐指数
1
解决办法
1万
查看次数

标签 统计

npm-install ×1

truffle ×1

visual-studio ×1