npm start没有工作

时间:2017-09-17 05:38:27

标签: node.js express windows-10

我刚从linux ubuntu转到windows,这里首先出现错误。当我尝试重新启动应用程序时,我收到此错误。每次我必须重新启动整个计算机才能看到更改。重新启动整个计算机npm start后工作正常。 我试图update npm,但没有结果。 有人可以帮忙吗?

npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v6.11.3
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! exproject@1.0.0 start: `node ./bin/www`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the exproject@1.0.0 start script 'node ./bin/www'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the exproject package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./bin/www
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs exproject
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls exproject
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\sashi\Desktop\nprojects\basicexpress\exproject\npm-debug.log

2 个答案:

答案 0 :(得分:0)

你运行npm install了吗?你有package.json吗?

答案 1 :(得分:-1)

改变

  "scripts": {
     "start": "./bin/www"
  },

  "scripts": {
     "start": "node ./bin/www"
  },