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

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

angular4 build報錯

fs.js:640

? return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);

? ? ? ? ? ? ? ? ?^


Error: ENOENT: no such file or directory, open 'E:\angularjs\angular4\node_modules\_@[email protected]@@angular\package.json'

? ? at Error (native)

? ? at Object.fs.openSync (fs.js:640:18)

? ? at Object.fs.readFileSync (fs.js:508:33)

? ? at licensePlugin.readPackageJson (E:\angularjs\angular4\node_modules\[email protected]@license-webpack-plugin\index.js:26:19)

? ? at licensePlugin.getModuleInfo (E:\angularjs\angular4\node_modules\[email protected]@license-webpack-plugin\index.js:30:28)

? ? at licensePlugin.<anonymous> (E:\angularjs\angular4\node_modules\[email protected]@license-webpack-plugin\index.js:81:31)

? ? at Array.filter (native)

? ? at licensePlugin.writeModuleInfo (E:\angularjs\angular4\node_modules\[email protected]@license-webpack-plugin\index.js:77:8)

? ? at licensePlugin.gatherModuleInfo (E:\angularjs\angular4\node_modules\[email protected]@license-webpack-plugin\index.js:117:10)

? ? at licensePlugin.<anonymous> (E:\angularjs\angular4\node_modules\[email protected]@license-webpack-plugin\index.js:233:12)

? ? at Compiler.applyPlugins (E:\angularjs\angular4\node_modules\[email protected]@tapable\lib\Tapable.js:61:14)

? ? at emitRecords.err (E:\angularjs\angular4\node_modules\[email protected]@webpack\lib\Compiler.js:268:11)

? ? at Compiler.emitRecords (E:\angularjs\angular4\node_modules\[email protected]@webpack\lib\Compiler.js:375:38)

? ? at emitAssets.err (E:\angularjs\angular4\node_modules\[email protected]@webpack\lib\Compiler.js:262:10)

? ? at applyPluginsAsyncSeries1.err (E:\angularjs\angular4\node_modules\[email protected]@webpack\lib\Compiler.js:368:12)

? ? at next (E:\angularjs\angular4\node_modules\[email protected]@tapable\lib\Tapable.js:218:11)


正在回答

2 回答

你用cnpm裝的吧

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

aleoyu 提問者

是的。那有什么方法可以改這個錯誤呢?
2017-08-29 回復 有任何疑惑可以回復我~
#2

Erik_Song

這種問題很常見,兩種解決方案: 1.修改ng 的版本,再次安裝 2.卸載后用npm安裝一次
2017-08-29 回復 有任何疑惑可以回復我~

你好,我這邊是用npm安裝的 1.7.3的cli請問一下build的時候還是會報錯

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

舉報

0/150
提交
取消

angular4 build報錯

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

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

幫助反饋 APP下載

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

公眾號

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