npm start時(shí)報(bào)錯(cuò)
看評(píng)論說新版本要使用 npm start開啟服務(wù)。但是我在執(zhí)行這句的時(shí)候報(bào)錯(cuò)。
> @0.0.1 start F:\workspaaces
> node server.js --env=dev
module.js:327
? ? throw err;
? ? ^
Error: Cannot find module 'core-js/fn/object/assign'
? ? at Function.Module._resolveFilename (module.js:325:15)
? ? at Function.Module._load (module.js:276:25)
? ? at Module.require (module.js:353:17)
? ? at require (internal/module.js:12:17)
? ? at Object.<anonymous> (F:\workspaaces\server.js:3:1)
? ? at Module._compile (module.js:409:26)
? ? at Object.Module._extensions..js (module.js:416:10)
? ? at Module.load (module.js:343:32)
? ? at Function.Module._load (module.js:300:12)
? ? at Function.Module.runMain (module.js:441:10)
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "G:\\bzyj\\nodejs\\node.exe" "G:\\bzyj\\nodejs\\node_modules\\npm\ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? \bin\\npm-cli.js" "start"
npm ERR! node v4.4.3
npm ERR! npm ?v2.15.1
npm ERR! code ELIFECYCLE
npm ERR! @0.0.1 start: `node server.js --env=dev`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @0.0.1 start script 'node server.js --env=dev'.
npm ERR! This is most likely a problem with the ?package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ? ? node server.js --env=dev
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! ? ? npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! ? ? npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! ? ? F:\workspaaces\npm-debug.log
2016-12-21
出現(xiàn)這個(gè)錯(cuò)誤怎么解決那???
2016-10-25
運(yùn)行 npm start報(bào)錯(cuò)~~~~求解惑~
2016-10-21
我這邊情況是這樣解決的,錯(cuò)誤的位置和你一樣。修改cfg文件件下的default.js下的 publicPath: 'assets/', ?改為 publicPath: '/assets/',可以在本地正常打開。打包上傳至github,生成靜態(tài)頁(yè)面的時(shí)候再改回去,不然線上的又打不開了。主要是絕對(duì)路徑和 相對(duì)路徑的問題,文件會(huì)發(fā)生找不到的情況。
2016-10-16
我也是這個(gè)問題,win10請(qǐng)問怎么解決的
2016-08-31
你可以看一下nodejs的版本,我現(xiàn)在本地有兩個(gè)nodejs的版本,我第二次啟動(dòng)不成功是因?yàn)閚odejs的版本又變成了之前的那個(gè)版本,切回來就可以重新啟動(dòng)了
2016-08-21
我也這個(gè)問題,第一次裝了啟動(dòng)沒問題,第二次啟動(dòng)就有這個(gè)問題了,我換了個(gè)目錄能解決
2016-08-21
npm install一下,安裝相關(guān)依賴