![](/img/trans.png)
[英]Problem in installing npm install -g composer-cli in ubuntu 16.04
[英]Error while running npm install -g composer-cli on Window 10
我正在運行命令npm install -g composer-cli,但是遇到以下錯誤:
糟糕! 配置錯誤gyp ERR! 堆棧錯誤: gyp
失敗,退出代碼:1 gyp ERR! 堆棧在ChildProcess.onCpExit(C:\\ Program Files \\ nodejs \\ node_modules \\ npm \\ node_modules \\ node-gyp \\ lib \\ configure.js:336:16)gyp ERR! 堆疊在generateTwo(events.js:126:13)gyp ERR! 堆棧在ChildProcess.emit(events.js:214:7)gyp ERR! 堆棧在Process.ChildProcess._handle.onexit(internal / child_process.js:198:12)gyp ERR! 系統Windows_NT 10.0.16299 gyp ERR! 命令“ C:\\ Program Files \\ nodejs \\ node.exe”“ C:\\ Program Files \\ nodejs \\ node_modules \\ npm \\ node_modules \\ node-gyp \\ bin \\ node-gyp.js”“重建” gyp ERR! CWD C:\\ Users \\ vb0094005 \\ AppData \\ Roaming \\ npm \\ node_modules \\ composer-cli \\ node_modules \\ node-report gyp ERR! 節點-v v8.11.1 gyp ERR! node-gyp -v v3.6.2 gyp錯誤! 不正確npm警告可選的跳過選擇性依賴:fsevents@1.2.4(node_modules \\ composer-cli \\ node_modules \\ fsevents):npm警告不支持跳過選擇性依賴:fsevents@1.2.4不受支持的平台:想要的{“ os”:“ darwin “,” arch“:” any“}(當前:{” os“:” win32“,” arch“:” x64“})
npm ERR! 代碼ELIFECYCLE npm ERR! errno 1 npm錯誤! node-report@2.2.1安裝: node-gyp rebuild
gyp node-gyp rebuild
npm ERR! 退出狀態1 npm ERR! npm ERR! 在node-report@2.2.1安裝腳本上失敗。 npm ERR! npm可能不是問題。 上面可能還有其他日志記錄輸出。
我嘗試了文章中提到的所有內容: https : //github.com/nodejs/node-gyp,但是沒有運氣。
節點版本:v8.11.1 npm版本:5.6.0 node-gyp:v3.8.0
請幫助解決此錯誤。
目前不支持該平台-請參閱https://hyperledger.github.io/composer/latest/installing/installing-prereqs.html 。 我建議您使用虛擬機監控程序,例如適用於Windows 10 Professional環境的VirtualBox-內置的Hyper-V支持允許運行Linux虛擬機,您可以在其中安裝Hyperledger Composer。 另外,我們建議在VM中使用Ubuntu 16.04,因為這是我們大多數測試的級別。
如果您堅持使用Windows,則有人共享了一些Windows安裝資源(按原樣提供)-> https://davidkel.github.io/docs/Windows/Intro.html
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.