1

我一直在尝试克隆并运行我的团队一直在研究的 ember-cli 项目。我做 npm install 然后 bower install 然后 ember server。这出现了:

Path or pattern "bower_components/moment/moment.js" did not match any files [string exception]

应该是moment的文件夹被命名为momentjs。诡异的。我重命名它并再次尝试:

Path or pattern "bower_components/ember-simple-auth/simple-auth.amd.js" did not match any files [string exception]

Ember-simple-auth 甚至不应该出现在这个项目中,我的队友通知我说他删除了它。这是怎么回事?

我的 bower.json:

{
  "name": "brkb-web",
  "dependencies": {
    "handlebars": "~1.3.0",
    "jquery": "^1.11.1",
    "ember": "1.7.0",
    "ember-data": "1.0.0-beta.10",
    "ember-resolver": "~0.1.7",
    "loader": "stefanpenner/loader.js#1.0.1",
    "ember-cli-shims": "stefanpenner/ember-cli-shims#0.0.3",
    "ember-cli-test-loader": "rwjblue/ember-cli-test-loader#0.0.4",
    "ember-load-initializers": "stefanpenner/ember-load-initializers#0.0.2",
    "ember-qunit": "0.1.8",
    "ember-qunit-notifications": "0.0.4",
    "qunit": "~1.15.0",
    "font-awesome": "~4.2.0",
    "pikaday": "~1.2.0",
    "momentjs": "~2.8.3",
    "fancybox": "~2.1.5",
    "ember-validations": "http://builds.dockyard.com.s3.amazonaws.com/ember-validations/ember-validations-latest.js"
  },
  "devDependencies": {
    "bootstrap": "~3.2.0"
  }
}

我的 package.json:

{
  "name": "brkb-web",
  "version": "0.0.0",
  "private": true,
  "directories": {
    "doc": "doc",
    "test": "tests"
  },
  "scripts": {
    "start": "ember server",
    "build": "ember build",
    "test": "ember test"
  },
  "repository": "https://github.com/stefanpenner/ember-cli",
  "engines": {
    "node": ">= 0.10.0"
  },
  "author": "",
  "license": "MIT",
  "devDependencies": {
    "body-parser": "^1.2.0",
    "broccoli-asset-rev": "0.1.1",
    "broccoli-ember-hbs-template-compiler": "^1.6.1",
    "ember-cli": "0.0.46",
    "ember-cli-datepicker": "^1.2.1",
    "ember-cli-ic-ajax": "0.1.1",
    "ember-cli-inject-live-reload": "^1.0.2",
    "ember-cli-qunit": "0.1.0",
    "ember-cli-simple-auth": "^0.6.7",
    "ember-data": "1.0.0-beta.10",
    "express": "^4.8.5",
    "glob": "^4.0.5"
  }
}

如果您还有什么需要了解的,我可以用它来编辑这篇文章。

4

1 回答 1

0

You're still using the ember-cli-simple-auth package that will import the Ember Simple Auth bower package. If you want to remove Ember Simple Auth from the project you'll have to remove that as well.

于 2014-10-23T06:23:05.777 回答