首先,我是涉及服务器的Web开发的完整菜鸟。我不知疲倦地搜索并完成了我所知道的一切。我太好奇了解如何运行这个节点js应用程序。是否有人可以给我一步说明如何让它运行?
https://github.com/android-fanatic/video-timeline-comment-tagging-demo
我安装了mongodb和nodejs,但是当我运行
时,我得到了这个Darwin错误npm start
npm ERR! Darwin 14.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "start"
npm ERR! node v0.12.5
npm ERR! npm v2.11.2
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! /Users/JonDoe/Documents/web_apps/video-timeline-comment-ta`
非常感谢任何帮助。
答案 0 :(得分:1)
在package.json文件中,未指定启动脚本,因此npm start
不起作用。将package.json更改为以下
{
"name":"real-video-fake-tags",
"version":"0.0.4",
"private":true,
"scripts": {
"start": "node app.js"
},
"dependencies":{
"express":"2.5.10",
"jade":">= 0.2.0",
"mongoose" :">= 2.7.0",
"mailer":">=0.6.7"
}
}