내가 업데이트 된 패키지와 프로젝트를 다시 빌드하지만이 오류로 실행하기 위해 노력하고있어 : 내가했습니다오류 : ENOENT : 그런 파일이나 디렉토리 엠버 - CLI-심/앱 shims.js
[[email protected] genesis]$ ember build
cleaning up...
Build failed.
The Broccoli Plugin: [SourceMapConcat: Concat: Vendor /assets/vendor.js] failed with:
Error: ENOENT: no such file or directory, open '/home/folatt/workspace/arkos/genesis/tmp/source_map_concat-input_base_path-xZBOP47K.tmp/bower_components/ember-cli-shims/app-shims.js'
at Object.fs.openSync (fs.js:583:18)
at Object.fs.readFileSync (fs.js:490:33)
at SourceMap.addFile (/home/folatt/workspace/arkos/genesis/node_modules/fast-sourcemap-concat/lib/source-map.js:75:31)
at /home/folatt/workspace/arkos/genesis/node_modules/broccoli-concat/concat.js:200:16
at Array.forEach (native)
at Concat.<anonymous> (/home/folatt/workspace/arkos/genesis/node_modules/broccoli-concat/concat.js:198:24)
at /home/folatt/workspace/arkos/genesis/node_modules/fast-sourcemap-concat/lib/source-map.js:393:12
at initializePromise (/home/folatt/workspace/arkos/genesis/node_modules/rsvp/dist/rsvp.js:589:5)
at new Promise (/home/folatt/workspace/arkos/genesis/node_modules/rsvp/dist/rsvp.js:1077:31)
at SourceMap.end (/home/folatt/workspace/arkos/genesis/node_modules/fast-sourcemap-concat/lib/source-map.js:380:10)
The broccoli plugin was instantiated at:
at Concat.Plugin (/home/folatt/workspace/arkos/genesis/node_modules/broccoli-plugin/index.js:7:31)
at new Concat (/home/folatt/workspace/arkos/genesis/node_modules/broccoli-concat/concat.js:38:10)
at module.exports (/home/folatt/workspace/arkos/genesis/node_modules/broccoli-concat/index.js:26:10)
at EmberApp.concatFiles (/home/folatt/workspace/arkos/genesis/node_modules/ember-cli/lib/broccoli/ember-app.js:392:10)
at EmberApp._concatFiles (/home/folatt/workspace/arkos/genesis/node_modules/ember-cli/lib/broccoli/ember-app.js:405:15)
at EmberApp.javascript (/home/folatt/workspace/arkos/genesis/node_modules/ember-cli/lib/broccoli/ember-app.js:1297:12)
at EmberApp.toArray (/home/folatt/workspace/arkos/genesis/node_modules/ember-cli/lib/broccoli/ember-app.js:1674:10)
at EmberApp.toTree (/home/folatt/workspace/arkos/genesis/node_modules/ember-cli/lib/broccoli/ember-app.js:1696:30)
at module.exports (/home/folatt/workspace/arkos/genesis/ember-cli-build.js:89:14)
at Class.setupBroccoliBuilder (/home/folatt/workspace/arkos/genesis/node_modules/ember-cli/lib/models/builder.js:84:19)
좀비를 사용하지 않으려 고 시도했습니다. 나는 또한 bower install
을 시도하고 ember build
을 다시 실행했습니다.
[업데이트]
나는 엠버 - CLI에/lib 디렉토리/브로콜리/emeber-appjs에 다음과 같은 행이 들어있는 것으로 나타났습니다 :
if (bowerEmberCliShims) {
emberShims = this.bowerDirectory + '/ember-cli-shims/app-shims.js';
}
는이 새로운 위치에 해당하지 않습니다 {package-root} /vendor/ember-cli-shims/app-shims.js에있는 파일
즉, 두 개의 디렉토리가 있습니다.
는[업데이트] 요청에 따라
, 아래 package.json과 bower.json 내 변화입니다.
추가 노트에 이미 emberjs 1.x에서 2.x로 변경된 프로젝트와 비슷한 프로젝트가 있으므로 나머지 코드를 다시 작성하는 방법에 대해 실제로 염려 할 필요가 없습니다.
된 package.json
"devDependencies": {
"broccoli-asset-rev": "^2.2.0",
"broccoli-funnel": "^0.2.8",
"ember-breadcrumbs": "0.1.9",
"ember-cli": "1.13.13",
"ember-cli-app-version": "^1.0.0",
"ember-cli-babel": "^5.1.5",
"ember-cli-clipboard": "0.4.1",
"ember-cli-content-security-policy": "0.5.0",
"ember-cli-dependency-checker": "^1.1.0",
"ember-cli-ember-uploader": "0.0.1",
"ember-cli-htmlbars": "^1.0.1",
"ember-cli-htmlbars-inline-precompile": "^0.3.1",
"ember-cli-ic-ajax": "0.2.4",
"ember-cli-inject-live-reload": "^1.3.1",
"ember-cli-qunit": "^1.0.4",
"ember-cli-release": "0.2.8",
"ember-cli-simple-auth": "0.8.0",
"ember-cli-simple-auth-token": "0.7.3",
"ember-cli-sri": "^1.2.0",
"ember-cli-uglify": "^1.2.0",
"ember-data": "1.13.15",
"ember-disable-proxy-controllers": "^1.0.1",
"ember-export-application-global": "^1.0.4",
"ember-resolver": "",
"ember-websockets": "6.3.0",
"mock-socket": "6.0.4",
"semantic-ui-ember": "2.0.0-beta.0",
"websockets": "0.2.0"
},
된 bower.json :
"dependencies": {
"codemirror": "~5.6.0",
"ember": "1.13.11",
"ember-cli-shims": "0.0.6",
"ember-cli-test-loader": "0.2.1",
"ember-data": "1.13.15",
"ember-load-initializers": "0.1.7",
"ember-qunit": "0.4.16",
"ember-qunit-notifications": "0.1.0",
"ember-resolver": "~0.1.20",
"ember-simple-auth": "0.8.0",
"ember-uploader": "0.3.2",
"fira": "~0.1.0",
"font-awesome": "~4.4.0",
"jquery": "1.11.3",
"lightbox2": "~2.8.1",
"loader.js": "ember-cli/loader.js#3.4.0",
"moment": "~2.10.6",
"qunit": "~1.20.0",
"lato": "^0.3.0",
"semantic-ui": "^2.2.4",
"urijs": "^1.18.4",
"socket.io-client": "^1.4.8"
},
새로운 package.json
"devDependencies": {
"broccoli-asset-rev": "2.5.x",
"broccoli-funnel": "1.0.x",
"ember-cli": "^2.11.1",
"ember-cli-app-version": "2.0.x",
"ember-cli-autoprefixer": "0.6.x",
"ember-cli-babel": "5.2.x",
"ember-cli-content-security-policy": "0.6.x",
"ember-cli-dependency-checker": "1.3.x",
"ember-cli-htmlbars": "1.1.x",
"ember-cli-htmlbars-inline-precompile": "0.3.x",
"ember-cli-ic-ajax": "1.0.x",
"ember-cli-inject-live-reload": "1.6.x",
"ember-cli-jshint": "2.0.x",
"ember-cli-qunit": "3.1.x",
"ember-cli-release": "0.2.x",
"ember-cli-selectize": "0.5.x",
"ember-cli-sri": "2.1.x",
"ember-cli-uglify": "1.2.x",
"ember-data": "2.11.x",
"ember-export-application-global": "1.1.x",
"ember-load-initializers": "0.6.x",
"ember-resolver": "2.1.x",
"ember-simple-auth": "1.2.x",
"ember-simple-auth-token": "2.1.x",
"ember-uploader": "1.2.x",
"ember-websockets": "6.3.x",
"ember-welcome-page": "2.0.x",
"loader.js": "4.2.x",
"mock-socket": "5.0.x",
"semantic-ui-ember": "2.0.x",
"websockets": "0.2.x"
},
새로운 bower.json
"dependencies": {
"codemirror": "5.24.x",
"ember": "2.11.x",
"ember-qunit-builds": "1.0.x",
"ember-qunit-notifications": "0.1.x",
"fira": "git+https://github.com/Folatt/Fira#master",
"font-awesome": "4.7.x",
"jQuery-contextMenu": "2.4.x",
"lato-font": "2.0.x",
"loader.js": "4.0.x",
"lightbox2": "git+https://github.com/Folatt/lightbox2#master",
"moment": "2.15.x",
"multiselect": "0.9.x",
"qunit": "2.1.x",
"selectize": "0.12.x",
"semantic-ui": "2.2.x",
"socket.io-client": "1.7.x",
"urijs": "1.18.x"
}
bower 설치를 시도한 다음 ember 빌드를 실행하십시오. –
시도. 변경 없음. – Folatt
무엇을 업데이트하셨습니까? 'package.json'과'bower.json' – Lux