Ember启动报错

Ember启动报错

Path or pattern "bower_components/dinosheets/dist/dinosheets.amd.js" did not match any files
Error: Path or pattern "bower_components/dinosheets/dist/dinosheets.amd.js" did not match any files
    at Object.multiGlob (/Users/admin/projects/idcos-enterprise-ui2/node_modules/ember-cli/node_modules/broccoli-kitchen-sink-helpers/index.js:203:13)
    at CoreObject.module.exports.CachingWriter.extend.addFiles (/Users/admin/projects/idcos-enterprise-ui2/node_modules/ember-cli/node_modules/broccoli-sourcemap-concat/concat-with-maps.js:77:13)
    at CoreObject.module.exports.CachingWriter.extend.updateCache (/Users/admin/projects/idcos-enterprise-ui2/node_modules/ember-cli/node_modules/broccoli-sourcemap-concat/concat-with-maps.js:55:12)
    at /Users/admin/projects/idcos-enterprise-ui2/node_modules/ember-cli/node_modules/broccoli-caching-writer/index.js:107:21
    at lib$rsvp$$internal$$tryCatch (/Users/admin/projects/idcos-enterprise-ui2/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:493:16)
    at lib$rsvp$$internal$$invokeCallback (/Users/admin/projects/idcos-enterprise-ui2/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:505:17)
    at lib$rsvp$$internal$$publish (/Users/admin/projects/idcos-enterprise-ui2/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:476:11)
    at lib$rsvp$asap$$flush (/Users/admin/projects/idcos-enterprise-ui2/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:1198:9)
    at process._tickCallback (node.js:355:11)

报错原因

  • 在安装ember的第三方npm插件包的时候,安装一半终止,因为网速或者其他的一些问题安装不上
  • 人工修改package.json文件
  • 人工修改bower.json文件
  • 人工修改.bowerrc

解决方法

  • rm -rf node_modules bower_components/ 删除安装包的依赖
  • npm cache clean 清理npm缓存
  • bower cache clean 清理bower缓存
  • npm install 重新安装npm,不要人工中断
  • bower install 重新安装bower,也不要中断

npm install 安装不成功一直在加载

  • vi ~/.npmrc (如果没有可以手工创建)
  • 将taobao的npm源配置到里面去,将官方的源注释
  registry=http://registry.npm.taobao.org
  #registry=http://registry.cnpmjs.org

参考:
https://github.com/rwjblue/ember-qunit/issues/131

posted @ 2015-08-29 12:09  peng_gy  阅读(128)  评论(0编辑  收藏  举报