【问题标题】:Error In Angular JS SetupAngular JS 设置中的错误
【发布时间】:2016-12-28 17:03:57
【问题描述】:

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

/////////////////////////////////////////////////////////////// ///////////////////

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

/////////////////////////////////////////////////////////// /////////////////////p>

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>

谁能帮我解决这个问题?

【问题讨论】:

  • 编辑您的问题,缺少某些部分

标签: angularjs npm


【解决方案1】:

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

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

【讨论】:

  • 我现在正在克隆项目。它正在处理中。是不是这个命令只有在克隆过程完成后才能起作用?
  • 是的,在克隆项目后检查 json 文件
  • 克隆。现在我将json添加到它? “脚本”:{“开始”:“节点 yourScript.js”}
猜你喜欢
  • 1970-01-01
  • 2018-09-01
  • 2023-04-07
  • 1970-01-01
  • 1970-01-01
  • 2015-10-29
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多