Emberjs在windows上奇怪报错

使用emberjs构建工程时,务必将ember-cli纳入工程组件,即--save-dev。
同时npm list是个很好用的命令,仔细查看,一定要观察未满足的依赖,这种情况下需要shell手动进入未install complete的模块,手动运行npm install
Just so other people don't have the same issue as me, running two Git Bash windows on the same folder (the project root) will also create this behavior.

I was having one Administrator-privileges window running 'ember server' and another for doing other things and for some reason it didn't register with me that that would cause this issue!


https://github.com/ember-cli/ember-cli/issues/1253


$ ember build
version: 1.13.8
BuildingBuilding.Building..Building...BuildingBuilding.Building..Cleanup error.
ENOTEMPTY, directory not empty 'D:\Tools\Project\gitProject\simple-blog\tmp\concat_with_maps-output_path-8vkOh8IQ.tmp'
Error: ENOTEMPTY, directory not empty 'D:\Tools\Project\gitProject\simple-blog\tmp\concat_with_maps-output_path-8vkOh8IQ.tmp'
    at Error (native)
    at Object.fs.rmdirSync (fs.js:711:18)
    at rmkidsSync (D:\Tools\Project\gitProject\simple-blog\node_modules\ember-cli\node_modules\broccoli-sourcemap-concat\node_modules\broccoli-caching-writer\node_modules\broccoli-plugin\node_modules\quick-temp\node_modules\rimraf\rimraf.js:247:11)
    at rmdirSync (D:\Tools\Project\gitProject\simple-blog\node_modules\ember-cli\node_modules\broccoli-sourcemap-concat\node_modules\broccoli-caching-writer\node_modules\broccoli-plugin\node_modules\quick-temp\node_modules\rimraf\rimraf.js:237:7)
    at fixWinEPERMSync (D:\Tools\Project\gitProject\simple-blog\node_modules\ember-cli\node_modules\broccoli-sourcemap-concat\node_modules\broccoli-caching-writer\node_modules\broccoli-plugin\node_modules\quick-temp\node_modules\rimraf\rimraf.js:150:5)
    at Function.rimrafSync (D:\Tools\Project\gitProject\simple-blog\node_modules\ember-cli\node_modules\broccoli-sourcemap-concat\node_modules\broccoli-caching-writer\node_modules\broccoli-plugin\node_modules\quick-temp\node_modules\rimraf\rimraf.js:216:26)
    at Object.remove (D:\Tools\Project\gitProject\simple-blog\node_modules\ember-cli\node_modules\broccoli-sourcemap-concat\node_modules\broccoli-caching-writer\node_modules\broccoli-plugin\node_modules\quick-temp\index.js:26:12)
    at ReadCompat.cleanup (D:\Tools\Project\gitProject\simple-blog\node_modules\ember-cli\node_modules\broccoli-sourcemap-concat\node_modules\broccoli-caching-writer\node_modules\broccoli-plugin\read_compat.js:69:13)
    at ConcatWithMaps.Plugin.cleanup (D:\Tools\Project\gitProject\simple-blog\node_modules\ember-cli\node_modules\broccoli-sourcemap-concat\node_modules\broccoli-caching-writer\node_modules\broccoli-plugin\index.js:113:49)
    at cleanupTree (D:\Tools\Project\gitProject\simple-blog\node_modules\ember-cli\node_modules\broccoli\lib\builder.js:147:17)
Build failed.
ENOENT, no such file or directory 'D:\Tools\Project\gitProject\simple-blog\tmp\concat_with_maps-input_base_path-mLgkKSTB.tmp\0\D:\Tools\Project\gitProject\simple-blog\tmp\concat_with_maps-input_base_path-mLgkKSTB.tmp\0\ember-cli-app-version\components\app-version.js'
Error: ENOENT, no such file or directory 'D:\Tools\Project\gitProject\simple-blog\tmp\concat_with_maps-input_base_path-mLgkKSTB.tmp\0\D:\Tools\Project\gitProject\simple-blog\tmp\concat_with_maps-input_base_path-mLgkKSTB.tmp\0\ember-cli-app-version\components\app-version.js'
    at Error (native)
    at Object.fs.openSync (fs.js:500:18)
    at Object.fs.readFileSync (fs.js:352:15)
    at SourceMap.addFile (D:\Tools\Project\gitProject\simple-blog\node_modules\ember-cli\node_modules\broccoli-sourcemap-concat\node_modules\fast-sourcemap-concat\lib\source-map.js:68:19)
    at ConcatWithMaps.<anonymous> (D:\Tools\Project\gitProject\simple-blog\node_modules\ember-cli\node_modules\broccoli-sourcemap-concat\concat-with-maps.js:96:17)
    at Array.forEach (native)
    at ConcatWithMaps.addFiles (D:\Tools\Project\gitProject\simple-blog\node_modules\ember-cli\node_modules\broccoli-sourcemap-concat\concat-with-maps.js:93:9)
    at ConcatWithMaps.build (D:\Tools\Project\gitProject\simple-blog\node_modules\ember-cli\node_modules\broccoli-sourcemap-concat\concat-with-maps.js:65:8)
    at D:\Tools\Project\gitProject\simple-blog\node_modules\ember-cli\node_modules\broccoli-sourcemap-concat\node_modules\broccoli-caching-writer\index.js:152:21
    at lib$rsvp$$internal$$tryCatch (D:\Tools\Project\gitProject\simple-blog\node_modules\ember-cli\node_modules\rsvp\dist\rsvp.js:493:16)

你可能感兴趣的:(windows,git)