运行yeoman AngularJS发生器的错误

时间:2014-04-07 14:17:36

标签: node.js angularjs yeoman

非常感谢任何帮助!

http://yeoman.io/尝试以下步骤时,我在运行yo angular时遇到了很多错误,指示我发布this issue on github

我在http://yeoman.io/关注的步骤:

npm install -g generator-angular  # install generator
yo angular                        # scaffold out a AngularJS project
bower install angular-ui          # install a dependency for your project from Bower
grunt test                        # test your app
grunt serve                       # preview your app (formerly `grunt server`)
grunt                             # build the application for deployment

我的npm和节点版本:

$ npm -v
1.4.3
$ node -v
v0.10.26

输出在第一个错误之前开始一点:     npm http 304 https://registry.npmjs.org/bytes/0.2.1     npmnpm http GET https://registry.npmjs.org/js-yaml      呃!错误:ENOENT,lstat' /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/eventemitter2/lib/eventemitter2.js'     错误的ERR!如果您需要帮助,可以报告此整个日志,     npmnpm http GET https://registry.npmjs.org/has-color     呃!包括npm和节点版本,位于:     错误的ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 3.5.0-48-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "grunt-karma" "karma-ng-html2js-preprocessor" "karma-ng-scenario" "--save-dev"
npm npm http GETERR! https://registry.npmjs.org/object-assign
 cwd /home/lpanebr/mysites/webdev/public/angular
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/eventemitter2/lib/eventemitter2.js
npm ERR! fstream_path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/eventemitter2/lib/eventemitter2.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/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, open '/home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/js-yaml/examples/custom_types.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.5.0-48-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "grunt-karma" "karma-ng-html2js-preprocessor" "karma-ng-scenario" "--save-dev"
npm ERR! cwd /home/lpanebr/mysites/webdev/public/angular
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/js-yaml/examples/custom_types.js
npm ERR! code ENOENT
npm ERR! errno 34
npm http 304 https://registry.npmjs.org/fresh/0.2.0
npm http 304 https://registry.npmjs.org/send/0.1.4
npm http 304 https://registry.npmjs.org/pkginfo
npm ERR! Error: ENOENT, lstat '/home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/iconv-lite/README.md~'
npm npm ERR!ERR! If you need help, you may report this *entire* log,
 Error: ENOENT, chmod '/home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/which/package.json'
npm npm ERR!ERR! including the npm and node versions, at:
 If you need help, you may report this *entire* log,
npmnpm  ERR! including the npm and node versions, at:
npm ERR!ERR!     <http://github.com/npm/npm/issues>
     <http://github.com/npm/npm/issues>


npm npmERR!  SystemERR! Linux 3.5.0-48-generic
 System Linux 3.5.0-48-generic
npm npm ERR! ERR! commandcommand "/usr/bin/node" "/usr/bin/npm" "install" "grunt-karma" "karma-ng-html2js-preprocessor" "karma-ng-scenario" "--save-dev"
 "/usr/bin/node" "/usr/bin/npm" "install"
npmnpm  ERR! ERR!cwd /home/lpanebr/mysites/webdev/public/angular
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/which/package.json
npm ERR! fstream_path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/which/package.json
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call chmod
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/node_modules/npm/node_modules/fstream/lib/writer.js:305:19
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
 cwd /home/lpanebr/mysites/webdev/public/angular
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/iconv-lite/README.md~
npm ERR! fstream_path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/iconv-lite/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/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/underscore.string/Rakefile'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.5.0-48-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "grunt-karma" "karma-ng-html2js-preprocessor" "karma-ng-scenario" "--save-dev"
npm ERR! cwd /home/lpanebr/mysites/webdev/public/angular
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/underscore.string/Rakefile
npm ERR! fstream_path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/underscore.string/Rakefile
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm http 304 https://registry.npmjs.org/uid2/0.0.3
npm ERR! Error: ENOENT, lstat '/home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/findup-sync/test/findup-sync_test.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.5.0-48-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "grunt-karma" "karma-ng-html2js-preprocessor" "karma-ng-scenario" "--save-dev"
npm ERR! cwd /home/lpanebr/mysites/webdev/public/angular
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/findup-sync/test/findup-sync_test.js
npm ERR! fstream_path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/findup-sync/test/findup-sync_test.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/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/getobject/test/namespace_test.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.5.0-48-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "grunt-karma" "karma-ng-html2js-preprocessor" "karma-ng-scenario" "--save-dev"
npm ERR! cwd /home/lpanebr/mysites/webdev/public/angular
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/getobject/test/namespace_test.js
npm ERR! fstream_path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/getobject/test/namespace_test.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/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/async/README.md'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.5.0-48-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "grunt-karma" "karma-ng-html2js-preprocessor" "karma-ng-scenario" "--save-dev"
npm ERR! cwd /home/lpanebr/mysites/webdev/public/angular
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/async/README.md
npm ERR! fstream_path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/async/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/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/coffee-script/extras/jsl.conf'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.5.0-48-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "grunt-karma" "karma-ng-html2js-preprocessor" "karma-ng-scenario" "--save-dev"
npm ERR! cwd /home/lpanebr/mysites/webdev/public/angular
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/coffee-script/extras/jsl.conf
npm ERR! fstream_path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/coffee-script/extras/jsl.conf
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/exit/test/exit_test.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.5.0-48-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "grunt-karma" "karma-ng-html2js-preprocessor" "karma-ng-scenario" "--save-dev"
npm ERR! cwd /home/lpanebr/mysites/webdev/public/angular
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/exit/test/exit_test.js
npm ERR! fstream_path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/exit/test/exit_test.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/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/hooker/dist/ba-hooker.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.5.0-48-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "grunt-karma" "karma-ng-html2js-preprocessor" "karma-ng-scenario" "--save-dev"
npm ERR! cwd /home/lpanebr/mysites/webdev/public/angular
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/hooker/dist/ba-hooker.js
npm ERR! fstream_path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/hooker/dist/ba-hooker.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/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/grunt-legacy-util/test/index.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.5.0-48-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "grunt-karma" "karma-ng-html2js-preprocessor" "karma-ng-scenario" "--save-dev"
npm ERR! cwd /home/lpanebr/mysites/webdev/public/angular
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/grunt-legacy-util/test/index.js
npm ERR! fstream_path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/grunt-legacy-util/test/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/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/glob/glob.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.5.0-48-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "grunt-karma" "karma-ng-html2js-preprocessor" "karma-ng-scenario" "--save-dev"
npm ERR! cwd /home/lpanebr/mysites/webdev/public/angular
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/glob/glob.js
npm ERR! fstream_path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/glob/glob.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/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm http 304 https://registry.npmjs.org/methods/0.1.0
npm http 304 https://registry.npmjs.org/negotiator/0.3.0
npm http 304 https://registry.npmjs.org/raw-body/1.1.2
npm ERR! Error: ENOENT, lstat '/home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/nopt/lib/nopt.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.5.0-48-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "grunt-karma" "karma-ng-html2js-preprocessor" "karma-ng-scenario" "--save-dev"
npm ERR! cwd /home/lpanebr/mysites/webdev/public/angular
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/nopt/lib/nopt.js
npm ERR! fstream_path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/nopt/lib/nopt.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/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/minimatch/minimatch.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.5.0-48-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "grunt-karma" "karma-ng-html2js-preprocessor" "karma-ng-scenario" "--save-dev"
npm ERR! cwd /home/lpanebr/mysites/webdev/public/angular
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/minimatch/minimatch.js
npm ERR! fstream_path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/minimatch/minimatch.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/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! EEXIST, mkdir '/home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/dateformat'
File exists: /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/dateformat
Move it away, and try again. 

npm ERR! System Linux 3.5.0-48-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /home/lpanebr/mysites/webdev/public/angular
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/dateformat
npm ERR! fstream_path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/dateformat/Readme.md
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! fstream_stack /usr/lib/node_modules/npm/node_modules/fstream/lib/writer.js:171:23
npm ERR! fstream_stack /usr/lib/node_modules/npm/node_modules/mkdirp/index.js:37:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm http 304 https://registry.npmjs.org/multiparty/2.2.0
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules'
npm ERR! error rolling back  grunt@0.4.4 { [Error: ENOTEMPTY, rmdir '/home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules']
npm ERR! error rolling back   errno: 53,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   path: '/home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules' }
npm ERR! Error: ENOTEMPTY, rmdir '/home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/iconv-lite'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.5.0-48-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /home/lpanebr/mysites/webdev/public/angular
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/iconv-lite
npm ERR! code ENOTEMPTY
npm ERR! errno 53
npm ERR! Error: ENOENT, open '/home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/rimraf/package.json'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.5.0-48-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "grunt-karma" "karma-ng-html2js-preprocessor" "karma-ng-scenario" "--save-dev"
npm ERR! cwd /home/lpanebr/mysites/webdev/public/angular
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/rimraf/package.json
npm ERR! code ENOENT
npm ERR! errno 34
npm http 304 https://registry.npmjs.org/debug
npm ERR! Error: ENOENT, lstat '/home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/lodash/lodash.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.5.0-48-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "grunt-karma" "karma-ng-html2js-preprocessor" "karma-ng-scenario" "--save-dev"
npm ERR! cwd /home/lpanebr/mysites/webdev/public/angular
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/lodash/lodash.js
npm ERR! fstream_path /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt/node_modules/lodash/lodash.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/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm http 304 https://registry.npmjs.org/binary
npm http 304 https://registry.npmjs.org/pullstream

这里没有错误..

npm http 304 https://registry.npmjs.org/chainsaw
npm http GET https://registry.npmjs.org/fstream
npm http 304 https://registry.npmjs.org/options

> ws@0.4.31 install /home/lpanebr/mysites/webdev/public/angular/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

npm http GET https://registry.npmjs.org/cryptiles
npm http GET https://registry.npmjs.org/sntp
npm http GET https://registry.npmjs.org/hoek
npm http GET https://registry.npmjs.org/boom
npm http GET https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/aws-sign
npm http GET https://registry.npmjs.org/cookie-jar
npm http GET https://registry.npmjs.org/traverse
npm http 304 https://registry.npmjs.org/punycode
npm http 304 https://registry.npmjs.org/boom
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/underscore.string
npm http 304 https://registry.npmjs.org/qs
npm http 304 https://registry.npmjs.org/sntp
npm http 304 https://registry.npmjs.org/cryptiles
npm http 304 https://registry.npmjs.org/fstream
npm http 304 https://registry.npmjs.org/hoek
make: Entering directory `/home/lpanebr/mysites/webdev/public/angular/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
npm http 304 https://registry.npmjs.org/aws-sign
npm http 304 https://registry.npmjs.org/cookie-jar
npm http 304 https://registry.npmjs.org/traverse
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/underscore.string
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished
  COPY Release/bufferutil.node
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/obj.target/validation.node
  SOLINK_MODULE(target) Release/obj.target/validation.node: Finished
  COPY Release/validation.node
make: Leaving directory `/home/lpanebr/mysites/webdev/public/angular/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'

> optipng-bin@0.3.3 postinstall /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt-contrib-imagemin/node_modules/optipng-bin
> node index.js

✗ getaddrinfo ENOTFOUND
npm http GET https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/graceful-fs

> gifsicle@0.1.5 postinstall /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt-contrib-imagemin/node_modules/gifsicle
> node index.js

✓ pre-build test passed successfully

> pngquant-bin@0.1.7 postinstall /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt-contrib-imagemin/node_modules/pngquant-bin
> node index.js

✓ pre-build test passed successfully

> jpegtran-bin@0.2.6 postinstall /home/lpanebr/mysites/webdev/public/angular/node_modules/grunt-contrib-imagemin/node_modules/jpegtran-bin
> node index.js

✓ pre-build test passed successfully
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/lpanebr/mysites/webdev/public/angular/npm-debug.log
npm ERR! not ok code 0
npm http GET https://registry.npmjs.org/abbrev
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/sigmund
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/lru-cache
npm http 304 https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/abbrev
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/lpanebr/mysites/webdev/public/angular/npm-debug.log
npm ERR! not ok code 0
lpanebr@brain:~/mysites/webdev/public/angular
$ 

1 个答案:

答案 0 :(得分:1)

我通过使用these instructions升级到最新稳定版本的节点来解决此问题。

事先我正在运行节点0.10.28和npm 1.4。某事&gt; -alpha。