节点JS ENOENT - 没有这样的文件或目录

时间:2016-10-06 02:25:56

标签: javascript node.js ember.js

我是node.js的初学者。 我使用bower install和npm install安装了依赖项。后来 每当我运行命令ember serve时,我都会收到错误。 我确保使用npm install安装了howler.js。与rsvp相同。

我的node.js是4.5.0 我的npm是2.15.9

如何解决此问题?我试图在Stack& amp;谷歌但无法找到任何可以指出我解决问题的答案。 谢谢。



Error: ENOENT: no such file or directory, stat '/Users/januszchudzynski/Desktop/Repositories/perfectour-web-private/tmp/source_map_concat-input_base_path-3cMSiSIf.tmp/0/bower_components/howler.js/dist/howler.js'
    at Error (native)
    at Object.fs.statSync (fs.js:844:18)
    at Concat.keyForFile (/Users/januszchudzynski/Desktop/Repositories/perfectour-web-private/node_modules/ember-cli/node_modules/broccoli-concat/node_modules/broccoli-caching-writer/index.js:87:20)
    at Array.map (native)
    at Concat.CachingWriter._conditionalBuild (/Users/januszchudzynski/Desktop/Repositories/perfectour-web-private/node_modules/ember-cli/node_modules/broccoli-concat/node_modules/broccoli-caching-writer/index.js:109:65)
    at /Users/januszchudzynski/Desktop/Repositories/perfectour-web-private/node_modules/ember-cli/node_modules/broccoli-concat/node_modules/broccoli-caching-writer/node_modules/broccoli-plugin/read_compat.js:61:34
    at tryCatch (/Users/januszchudzynski/Desktop/Repositories/perfectour-web-private/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:538:12)
    at invokeCallback (/Users/januszchudzynski/Desktop/Repositories/perfectour-web-private/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:553:13)
    at publish (/Users/januszchudzynski/Desktop/Repositories/perfectour-web-private/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:521:7)
    at flush (/Users/januszchudzynski/Desktop/Repositories/perfectour-web-private/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:2373:5)




{
  "name": "****",
  "dependencies": {
      "ember": "~2.3.1",
      "ember-cli-shims": "0.1.0",
      "ember-cli-test-loader": "0.2.1",
      "ember-load-initializers": "0.1.7",
      "ember-qunit": "0.4.16",
      "ember-qunit-notifications": "0.1.0",
      "ember-resolver": "~0.1.20",
      "jquery": "1.11.3",
      "loader.js": "ember-cli/loader.js#3.4.0",
      "qunit": "~1.20.0",
      "bootstrap": "~3.3.5",
      "firebase": "^2.1.0",
      "filesaver": "*",
      "hls.js":"*",
      "howler.js":"*"
  }
}

{
  "name": "****",
  "version": "0.1.6",
  "description": "****",
  "private": true,
  "directories": {
    "doc": "doc",
    "test": "tests"
  },
  "scripts": {
    "build": "ember build",
    "start": "ember server",
    "test": "ember test"
  },
  "repository": "",
  "engines": {
    "node": ">= 0.10.0"
  },
  "author": "",
  "license": "MIT",
  "devDependencies": {

    "ember-ajax": "0.7.1",
    "ember-bootstrap": "0.6.0",
    "ember-cli": "2.3.0",
    "ember-cli-app-version": "^1.0.0",
    "ember-cli-babel": "^5.1.5",
    "ember-cli-content-security-policy": "0.4.0",
    "ember-cli-dependency-checker": "1.2.0",
    "ember-cli-htmlbars": "^1.0.1",
    "ember-cli-htmlbars-inline-precompile": "^0.3.1",
    "ember-cli-inject-live-reload": "^1.3.1",
    "ember-cli-moment-shim": "1.0.0",
    "ember-cli-qunit": "^1.2.1",
    "ember-cli-release": "0.2.8",
    "ember-cli-sass": "^5.2.1",
    "ember-cli-sri": "^2.0.0",
    "ember-cli-uglify": "^1.2.0",
    "ember-data": "^2.3.0",
    "ember-disable-proxy-controllers": "^1.0.1",
    "ember-export-application-global": "^1.0.4",
    "ember-g-map": "0.0.13",
    "ember-hifi": "1.1.3",
    "ember-load-initializers": "^0.5.0",
    "ember-moment": "6.0.0",
    "ember-resolver": "^2.0.3",
    "ember-sortable": "1.8.1",
    "ember-truth-helpers": "1.2.0",
    "emberfire": "1.6.4",
    "loader.js": "^4.0.0",
    "moment": "2.11.2",
    "moment-timezone": "0.5.0",
    "torii": "0.6.1",
    "ui-download": "0.3.3"
  }
}

1 个答案:

答案 0 :(得分:1)

检查您的ember-cli-build.js文件,可能是您尝试包含咆哮包。 您需要删除以下行。

app.import('bower_components/h‌​owler.js/dist/howler‌​.js')

修改 当您通过凉亭使用howler.js时,您需要在bower.json

中提及它