簡體   English   中英

安裝npm install --save-dev web3@1.0.0-beta.26錯誤?

[英]Installing npm install --save-dev web3@1.0.0-beta.26 error?

我正在嘗試安裝web3.js庫並得到以下問題。

  • Node.js 8.x
  • Windows 7的。

我可以在此文件夾下找到python安裝。

C:\\ Users \\用戶Mabel.windows建造工具\\ python27

C:\\ Program Files \\ nodejs \\ node_modules \\ npm \\ node_modules \\ npm-lifecycle \\ node-gyp-bin \\ .... \\ node_modules \\ node-gyp \\ bin \\ node-gyp.js“ rebuild)else(節點” C :\\ Program Files \\ nodejs \\ node_modules \\ npm \\ node_modules \\ node-gyp \\ bin \\ node-gyp.js“重建)

糟糕! 配置錯誤gyp ERR! 堆棧錯誤:找不到Python可執行文件“ python \\ path \\ to \\ executable”,您可以設置PYTHON env變量。 糟糕! 堆棧位於PythonFinder.failNoPython(C:\\ Program Files \\ nodejs \\ node_mo dules \\ npm \\ node_modules \\ node-gyp \\ lib \\ configure.js:483:19)


在Windows上顯示錯誤的cmd

npm config設置python C:\\ Python27 \\ python.exe

上面的命令解決了這個問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM