亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

npm install報錯,不知道是系統差異還是node版本差異,跟python有關系?

> [email protected] preinstall D:\code\imooc\node_modules\.staging\gmsmith-25b516c8

> gm help


'gm' 不是內部或外部命令,也不是可運行的程序

或批處理文件。


> [email protected] preinstall D:\code\imooc\node_modules\.staging\phantomjssmith-85a0b53

c

> phantomjs --version


'phantomjs' 不是內部或外部命令,也不是可運行的程序

或批處理文件。


> [email protected] install D:\code\imooc\node_modules\canvas

> node-gyp rebuild



D:\code\imooc\node_modules\canvas>if not defined npm_config_node_gyp (node "D:\software\nodeJ

S\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )

else (node "" rebuild )

gyp ERR! configure error

gyp ERR! stack Error: Python executable "C:\Users\lenovo\AppData\Local\Programs\Python\Python

35\python.EXE" is v3.5.2, which is not supported by gyp.

gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.

gyp ERR! stack ? ? at failPythonVersion (D:\software\nodeJS\node_modules\npm\node_modules\nod

e-gyp\lib\configure.js:454:14)

gyp ERR! stack ? ? at D:\software\nodeJS\node_modules\npm\node_modules\node-gyp\lib\configure

.js:443:9

gyp ERR! stack ? ? at ChildProcess.exithandler (child_process.js:197:7)

gyp ERR! stack ? ? at emitTwo (events.js:106:13)

gyp ERR! stack ? ? at ChildProcess.emit (events.js:191:7)

gyp ERR! stack ? ? at maybeClose (internal/child_process.js:877:16)

gyp ERR! stack ? ? at Socket.<anonymous> (internal/child_process.js:334:11)

gyp ERR! stack ? ? at emitOne (events.js:96:13)

gyp ERR! stack ? ? at Socket.emit (events.js:188:7)

gyp ERR! stack ? ? at Pipe._handle.close [as _onclose] (net.js:498:12)

gyp ERR! System Windows_NT 10.0.15063

gyp ERR! command "D:\\software\\nodeJS\\node.exe" "D:\\software\\nodeJS\\node_modules\\npm\\n

ode_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"

gyp ERR! cwd D:\code\imooc\node_modules\canvas

gyp ERR! node -v v6.8.0

gyp ERR! node-gyp -v v3.4.0

gyp ERR! not ok


正在回答

2 回答

不用管直接npm start就可以了

0 回復 有任何疑惑可以回復我~
#1

逼近瘋狂的邊緣 提問者

非常感謝!強迫癥了,哈哈
2018-04-21 回復 有任何疑惑可以回復我~
#2

qq_局外人_33

你是真的厲害,angular項目之前已經安裝好了,換了個node版本,環境瘋狂報錯,最后卡在這里了,找了半天沒找到,最后你這個直接start就可以了,非常感謝
2019-03-13 回復 有任何疑惑可以回復我~

我也報同樣的錯誤,請問你解決了嗎

0 回復 有任何疑惑可以回復我~
#1

逼近瘋狂的邊緣 提問者

沒解決,手頭有開發任務,沒有用低版本node嘗試,怕環境出問題,不過不耽誤看視頻,視頻內容感覺沒必要把項目跑起來,能看代碼就行
2017-09-26 回復 有任何疑惑可以回復我~
#2

逼近瘋狂的邊緣 提問者

可以看我最新的回答
2018-04-21 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

npm install報錯,不知道是系統差異還是node版本差異,跟python有關系?

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號