2015-04-20 82 views
1

我需要你從這個着名的角JS項目,我從git下載的幫助。 https://github.com/thaiat/famous-flickrAngularJS GULP BrowerSync錯誤:ENAMETOOLONG,名字太長

當我運行gulp瀏覽器同步和我得到這個ENAMETOOLONG錯誤,我不知道如何解決它。

aj$ gulp browsersync 
[23:45:56] Using gulpfile ~/famous-flickr/gulpfile.js 
[23:45:56] Starting 'browserify'... 
[23:45:56] Finished 'browserify' after 23 ms 
[23:45:56] Starting 'fonts'... 
[23:45:56] Finished 'fonts' after 3.37 ms 
[23:45:56] Starting 'style'... 
[23:45:56] Starting 'style:watch'... 
[23:45:56] Finished 'style:watch' after 7.39 ms 

fs.js:438 
    return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); 
       ^
Error: ENAMETOOLONG, name too long '/Users/famous-`flickr/client/styles/data:application/json;base64, 

    at Object.fs.openSync (fs.js:438:18) 
    at Object.fs.readFileSync (fs.js:289:15) 
    at fromSource (/Users/DhanLalRaj/famous-flickr/node_modules/gulp-minify-css/node_modules/clean-css/lib/utils/input-source-map-tracker.js:67:31) 
    at InputSourceMapStore.track (/Users/DhanLalRaj/famous-flickr/node_modules/gulp-minify-css/node_modules/clean-css/lib/utils/input-source-map-tracker.js:137:5) 
    at Object.whenDone (/Users/DhanLalRaj/famous-flickr/node_modules/gulp-minify-css/node_modules/clean-css/lib/clean.js:96:44) 
    at processNext (/Users/DhanLalRaj/famous-flickr/node_modules/gulp-minify-css/node_modules/clean-css/lib/imports/inliner.js:105:13) 
    at importFrom (/Users/DhanLalRaj/famous-flickr/node_modules/gulp-minify-css/node_modules/clean-css/lib/imports/inliner.js:79:10) 
    at ImportInliner.process (/Users/DhanLalRaj/famous-flickr/node_modules/gulp-minify-css/node_modules/clean-css/lib/imports/inliner.js:36:10) 
    at /Users/DhanLalRaj/famous-flickr/node_modules/gulp-minify-css/node_modules/clean-css/lib/clean.js:71:41 
    at process._tickDomainCallback (node.js:463:13) 
+0

我有同樣的問題 – rvazquezglez

回答

0

看來這是一個問題,可以在縮小過程中提出映射文件。請參閱https://github.com/FlagshipWP/compass/issues/29該項目遇到類似問題。

爲我工作的解決方案是簡單地從創建地圖文件中抑制sass。如果你有一個大口項目剛剛成立的青菜配置參數:

<...> 
.pipe(sass, mainSass, { 
    sourcemap:false, 
    loadPath: ['resources/bower_components'] 
}) 
<...> 

如果您在命令行中運行青菜這將是:

sass blahblahblah.css --sourcemap=none