首先,我对涉及服务器的 Web 开发完全是菜鸟。我孜孜不倦地寻找并做了我所知的一切。我很好奇如何运行这个 Node 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"
}
}
关于javascript - 如何运行我从 github 导入的这个 Node 应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31217669/