[英]How to run this node app that I imported from github?
首先,我对涉及服务器的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`
任何帮助将不胜感激。
在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"
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.