npm start時報錯
看評論說新版本要使用 npm start開啟服務(wù)。但是我在執(zhí)行這句的時候報錯。
> @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
2019-05-17
2018-10-10
端口被占用了
2017-12-04
看任務(wù)管理器,8080 端口重復(fù),把node.js關(guān)閉再執(zhí)行npm就好了
2017-08-23
這問題怎么解決呢?
2017-08-20
先 ? cd your-project-name(路徑名)
回車
再 ? npm start
2017-08-01
so ?what it is wrong?
2017-07-08
第一步、npm install -g
第二步、node app.js
2017-05-04
2017-04-12
2017-03-07
npm start后