2015-01-29 18 views
5
lstat

मैं चल रहा हूँ:NPM त्रुटि Gulp स्थापित करने: त्रुटि: ENOENT,

  • Ubuntu 14.04
  • नोड v0.10.25
  • NPM वी 1,3

स्थापित के माध्यम से NPM apt- स्थापित करें। जिस क्षण मैं गुलप स्थापित करने की कोशिश करता हूं (कोड स्निपेट में कमांड देखें) मुझे इन असफलताओं को मिलता है। मैंने पहले से ही 'npm cache clean' करने की कोशिश की है, .npmignore फ़ाइल जोड़कर और package.json फ़ाइल जोड़ना। अभी तक कुछ भी काम नहीं किया।

कोई भी विचार?

sudo npm install gulp gulp-sass gulp-autoprefixer --save-dev 
 

 
> [email protected] install /home/me/node_modules/gulp/node_modules/v8flags 
 
> node fetch.js 
 

 
sh: 1: node: not found 
 
npm WARN This failure might be due to the use of legacy binary "node" 
 
npm WARN For further explanations, please read 
 
/usr/share/doc/nodejs/README.Debian 
 
    
 
npm http GET https://registry.npmjs.org/once/-/once-1.3.1.tgz 
 
npm http 200 https://registry.npmjs.org/once/-/once-1.3.1.tgz 
 
npm ERR! weird error 127 
 
npm ERR! tar pack Error reading /home/me/tmp/npm-9540-2Uzl7SBx/1422536234106-0.37079049041494727/package 
 
npm ERR! addLocalDirectory Could not pack "/home/me/tmp/npm-9540-2Uzl7SBx/1422536234106-0.37079049041494727/package" to "/home/me/.npm/readable-stream/1.0.33/package.tgz" 
 
npm ERR! Error: ENOENT, lstat '/home/me/tmp/npm-9540-2Uzl7SBx/1422536233976-0.40873615234158933/package/test/source-map/util.js' 
 
npm ERR! If you need help, you may report this log at: 
 
npm ERR!  <http://github.com/isaacs/npm/issues> 
 
npm ERR! or email it to: 
 
npm ERR!  <[email protected]> 
 

 
npm ERR! System Linux 3.13.0-37-generic 
 
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "gulp" "gulp-sass" "gulp-autoprefixer" "--save-dev" 
 
npm ERR! cwd /home/me 
 
npm ERR! node -v v0.10.25 
 
npm ERR! npm -v 1.3.10 
 
npm ERR! path /home/me/tmp/npm-9540-2Uzl7SBx/1422536233976-0.40873615234158933/package/test/source-map/util.js 
 
npm ERR! fstream_path /home/me/tmp/npm-9540-2Uzl7SBx/1422536233976-0.40873615234158933/package/test/source-map/util.js 
 
npm ERR! fstream_type File 
 
npm ERR! fstream_class FileWriter 
 
npm ERR! code ENOENT 
 
npm ERR! errno 34 
 
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26 
 
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) 
 
npm ERR! Error: ENOENT, lstat '/home/me/node_modules/gulp-autoprefixer/node_modules/autoprefixer-core/lib/hacks/border-radius.js' 
 
npm ERR! If you need help, you may report this log at: 
 
npm ERR!  <http://github.com/isaacs/npm/issues> 
 
npm ERR! or email it to: 
 
npm ERR!  <[email protected]> 
 

 
npm ERR! System Linux 3.13.0-37-generic 
 
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "gulp" "gulp-sass" "gulp-autoprefixer" "--save-dev" 
 
npm ERR! cwd /home/me 
 
npm ERR! node -v v0.10.25 
 
npm ERR! npm -v 1.3.10 
 
npm ERR! path /home/me/node_modules/gulp-autoprefixer/node_modules/autoprefixer-core/lib/hacks/border-radius.js 
 
npm ERR! fstream_path /home/me/node_modules/gulp-autoprefixer/node_modules/autoprefixer-core/lib/hacks/border-radius.js 
 
npm ERR! fstream_type File 
 
npm ERR! fstream_class FileWriter 
 
npm ERR! code ENOENT 
 
npm ERR! errno 34 
 
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26 
 
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) 
 
npm ERR! Error: ENOENT, lstat '/home/me/node_modules/gulp-autoprefixer/node_modules/gulp-util/node_modules/minimist/index.js' 
 
npm ERR! If you need help, you may report this log at: 
 
npm ERR!  <http://github.com/isaacs/npm/issues> 
 
npm ERR! or email it to: 
 
npm ERR!  <[email protected]> 
 

 
npm ERR! System Linux 3.13.0-37-generic 
 
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "gulp" "gulp-sass" "gulp-autoprefixer" "--save-dev" 
 
npm ERR! cwd /home/me 
 
npm ERR! node -v v0.10.25 
 
npm ERR! npm -v 1.3.10 
 
npm ERR! path /home/me/node_modules/gulp-autoprefixer/node_modules/gulp-util/node_modules/minimist/index.js 
 
npm ERR! fstream_path /home/me/node_modules/gulp-autoprefixer/node_modules/gulp-util/node_modules/minimist/index.js 
 
npm ERR! fstream_type File 
 
npm ERR! fstream_class FileWriter 
 
npm ERR! code ENOENT 
 
npm ERR! errno 34 
 
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26 
 
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) 
 
npm ERR! Error: ENOENT, lstat '/home/me/node_modules/gulp-autoprefixer/node_modules/gulp-util/node_modules/chalk/readme.md' 
 
npm ERR! If you need help, you may report this log at: 
 
npm ERR!  <http://github.com/isaacs/npm/issues> 
 
npm ERR! or email it to: 
 
npm ERR!  <[email protected]> 
 

 
npm ERR! System Linux 3.13.0-37-generic 
 
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "gulp" "gulp-sass" "gulp-autoprefixer" "--save-dev" 
 
npm ERR! cwd /home/me 
 
npm ERR! node -v v0.10.25 
 
npm ERR! npm -v 1.3.10 
 
npm ERR! path /home/me/node_modules/gulp-autoprefixer/node_modules/gulp-util/node_modules/chalk/readme.md 
 
npm ERR! fstream_path /home/me/node_modules/gulp-autoprefixer/node_modules/gulp-util/node_modules/chalk/readme.md 
 
npm ERR! fstream_type File 
 
npm ERR! fstream_class FileWriter 
 
npm ERR! code ENOENT 
 
npm ERR! errno 34 
 
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26 
 
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) 
 

 
npm ERR! Error: ENOENT, lstat '/home/me/tmp/npm-9540-2Uzl7SBx/1422536229635-0.048849787563085556/package/test/fixtures/spec/benchmarks/large_empty.scss' 
 
npm ERR! If you need help, you may report this log at: 
 
npm ERR!  <http://github.com/isaacs/npm/issues> 
 
npm ERR! or email it to: 
 
npm ERR!  <[email protected]> 
 

 
npm ERR! System Linux 3.13.0-37-generic 
 
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "gulp" "gulp-sass" "gulp-autoprefixer" "--save-dev" 
 
npm ERR! cwd /home/me 
 
npm ERR! node -v v0.10.25 
 
npm ERR! npm -v 1.3.10 
 
npm ERR! path /home/me/tmp/npm-9540-2Uzl7SBx/1422536229635-0.048849787563085556/package/test/fixtures/spec/benchmarks/large_empty.scss 
 
npm ERR! fstream_path /home/me/tmp/npm-9540-2Uzl7SBx/1422536229635-0.048849787563085556/package/test/fixtures/spec/benchmarks/large_empty.scss 
 
npm ERR! fstream_type File 
 
npm ERR! fstream_class FileWriter 
 
npm ERR! code ENOENT 
 
npm ERR! errno 34 
 
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26 
 
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) 
 
npm ERR! 
 
npm ERR! Additional logging details can be found in: 
 
npm ERR!  /home/me/npm-debug.log 
 
npm ERR! not ok code 0

उत्तर

12

यह हल। जाहिर है, आपको नोडजेस-विरासत पैकेज की आवश्यकता है। एक बार जब मैं इसे apt-get के माध्यम से स्थापित करता हूं तो सभी त्रुटियों को एक बार में ठीक किया जाता है। मुझे another post समझाया गया है कि रुचि रखने वाले किसी भी व्यक्ति के लिए नोड और नोडजेस-विरासत क्यों है।

संबंधित मुद्दे