我目前正在研究一个项目的后端,并希望吸引我的朋友Ember前端客户端看看它的外观。但是,当我克隆git ember的代码时不会运行。
我通过NVM安装了Node:
arie@arie-UX32VD:~/Desktop/programming/git/uInternS/student$ which node
/home/arie/.nvm/versions/v0.12.2/bin/node
我已经尝试过运行npm install和npm update但是没有做到这一点。当我运行ember serve时,这是我得到的回应:
arie@arie-UX32VD:~/Desktop/programming/git/uInternS/student$ ember serve
An addon must define a `name` property.
如果我生成自己的新Ember项目,我可以正常启动它。不确定这里有什么不对,无法找到任何帮助!
的package.json
{
"name": "student",
"version": "0.0.0",
"description": "Small description for student goes here",
"private": true,
"directories": {
"doc": "doc",
"test": "tests"
},
"scripts": {
"start": "ember server",
"build": "ember build",
"test": "ember test"
},
"repository": "",
"engines": {
"node": ">= 0.10.0"
},
"author": "",
"license": "MIT",
"devDependencies": {
"broccoli-asset-rev": "^2.0.2",
"ember-cli": "0.2.3",
"ember-cli-app-version": "0.3.3",
"ember-cli-babel": "^5.0.0",
"ember-cli-content-security-policy": "0.4.0",
"ember-cli-dependency-checker": "0.0.8",
"ember-cli-htmlbars": "0.7.4",
"ember-cli-ic-ajax": "0.1.1",
"ember-cli-inject-live-reload": "^1.3.0",
"ember-cli-qunit": "0.3.10",
"ember-cli-sass": "^4.0.0-beta.6",
"ember-cli-uglify": "1.0.1",
"ember-data": "1.0.0-beta.16.1",
"ember-export-application-global": "^1.0.2"
}
}
bower.json
{
"name": "student",
"dependencies": {
"ember": "1.11.1",
"ember-cli-shims": "ember-cli/ember-cli-shims#0.0.3",
"ember-cli-test-loader": "ember-cli-test-loader#0.1.3",
"ember-data": "1.0.0-beta.16.1",
"ember-load-initializers": "ember-cli/ember-load-initializers#0.1.4",
"ember-qunit": "0.3.1",
"ember-qunit-notifications": "0.0.7",
"ember-resolver": "~0.1.15",
"jquery": "^1.11.1",
"loader.js": "ember-cli/loader.js#3.2.0",
"qunit": "~1.17.1"
}
Npm install and bower install:
arie@arie-UX32VD:~/Desktop/programming/git/uInternS/student$ npm install && bower install
npm WARN package.json ember-cli-sass@4.0.0-beta.7 No README data
arie@arie-UX32VD:~/Desktop/programming/git/uInternS/student$ ember serve
An addon must define a `name` property.
arie@arie-UX32VD:~/Desktop/programming/git/uInternS/student$