javascript - 微信工作流 yo創(chuàng)建的項(xiàng)目 npm install node prebuild報(bào)錯(cuò)
問題描述
Error: Command failed: node-gyp rebuildgyp ERR! clean errorgyp ERR! stack Error: EPERM: operation not permitted, unlink ’E:phpStudyWWWlocalesnode_modules_node-lwip@0.1.3@node-lwipbuildReleaselwip_decoder.node’gyp ERR! stack at Error (native)gyp ERR! System Windows_NT 10.0.14393gyp ERR! command 'C:Program Filesnodejsnode.exe' 'C:UsersAdministratorAppDataRoamingnpmnode_modulescnpmnode_modulesnpminstallnode-gyp-binnode-gyp.js' 'rebuild'gyp ERR! cwd E:phpStudyWWWlocalesnode_modules_node-lwip@0.1.3@node-lwipgyp ERR! node -v v6.10.3gyp ERR! node-gyp -v v3.6.1gyp ERR! not okat ChildProcess.exithandler (child_process.js:204:12)at emitTwo (events.js:106:13)at ChildProcess.emit (events.js:191:7)at maybeClose (internal/child_process.js:886:16)at Socket.<anonymous> (internal/child_process.js:342:11)at emitOne (events.js:96:13)at Socket.emit (events.js:188:7)at Pipe._handle.close [as _onclose] (net.js:497:12)× Install fail! Error: post install error, please remove node_modules before retry!Run 'C:Windowssystem32cmd.exe /d /s /c node prebuild' error, exit code 1Error: post install error, please remove node_modules before retry!Run 'C:Windowssystem32cmd.exe /d /s /c node prebuild' error, exit code 1at ChildProcess.proc.on.code (C:UsersAdministratorAppDataRoamingnpmnode_modulescnpmnode_modulesrunscriptindex.js:65:21)at emitTwo (events.js:106:13)at ChildProcess.emit (events.js:191:7)at maybeClose (internal/child_process.js:886:16)at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
編譯失敗 根據(jù)提示模塊全刪 重新用cnpm安裝還是同樣的錯(cuò)誤~
找了一些資料 也有一些方法都不能解決問題 求幫助~
問題解答
回答1:試試用yarn來install吧,之前做laravel的項(xiàng)目,依賴vue.js。也是類似問題,npm確實(shí)太慢,cnpm貌似會缺少很多東西,最后還是yarn搞定的。yarn兼容npm的命令的,速度比cnpm稍慢,但是比npm快多了。參考
相關(guān)文章:
1. 數(shù)組排序,并把排序后的值存入到新數(shù)組中2. html5 - css3scale和rotate同時(shí)使用轉(zhuǎn)換成matrix寫法該如何轉(zhuǎn)換?3. mysql 遠(yuǎn)程連接出錯(cuò)10060,我已經(jīng)設(shè)置了任意主機(jī)了。。。4. 默認(rèn)輸出類型為json,如何輸出html5. 為何 localStorage、sessionStorage 屬于html5的范疇,但是為何 IE8卻支持?6. MySQL的聯(lián)合查詢[union]有什么實(shí)際的用處7. python的正則怎么同時(shí)匹配兩個(gè)不同結(jié)果?8. PHP訂單派單系統(tǒng)9. php多任務(wù)倒計(jì)時(shí)求助10. win10 python3.5 matplotlib使用報(bào)錯(cuò)
