Angular JS Setup中的错误

时间:2016-12-28 06:52:26

标签: angularjs npm

我正在为我的第一个AngularJS应用程序设置环境。我指的是this链接。 我收到以下错误:

/////////////////////////////命令///////////////// ////////////////////

D:\FrontEnd>node --version
v6.9.1

//////////////////////////////命令//////////////// ////////////////////

D:\FrontEnd>npm install
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\ch
okidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
1.0.15: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"
})

D:\FrontEnd>npm start
npm ERR! Windows_NT 6.2.9200
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.9.1
npm ERR! npm  v3.10.8

npm ERR! missing script: start
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     D:\FrontEnd\npm-debug.log

D:\FrontEnd>

任何人都可以帮我吗?

1 个答案:

答案 0 :(得分:1)

我想你错过了package.json中的开始标记添加这个

"scripts": {
    "start": "node yourScript.js"
}