Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install failure #138

Open
star001007 opened this issue Oct 9, 2015 · 4 comments
Open

npm install failure #138

star001007 opened this issue Oct 9, 2015 · 4 comments

Comments

@star001007
Copy link

npm WARN package.json @ No repository field.
npm WARN package.json @ No license field.
npm WARN unmet dependency /home/vagrant/Code/personal/30qingnian/node_modules/gulp-rev/node_modules/gulp-util requires object-assign@'^3.0.0' but will load
npm WARN unmet dependency /home/vagrant/Code/personal/30qingnian/node_modules/gulp-rev/node_modules/object-assign,
npm WARN unmet dependency which is version 1.0.0
npm WARN unmet dependency /home/vagrant/Code/personal/30qingnian/node_modules/gulp-rev/node_modules/gulp-util requires through2@'^2.0.0' but will load
npm WARN unmet dependency /home/vagrant/Code/personal/30qingnian/node_modules/gulp-rev/node_modules/through2,
npm WARN unmet dependency which is version 0.6.5
npm WARN unmet dependency /home/vagrant/Code/personal/30qingnian/node_modules/gulp-minify-css/node_modules/gulp-util requires through2@'^2.0.0' but will load
npm WARN unmet dependency /home/vagrant/Code/personal/30qingnian/node_modules/gulp-minify-css/node_modules/through2,
npm WARN unmet dependency which is version 0.6.5
npm WARN unmet dependency /home/vagrant/Code/personal/30qingnian/node_modules/gulp-autoprefixer/node_modules/gulp-util requires object-assign@'^3.0.0' but will load
npm WARN unmet dependency /home/vagrant/Code/personal/30qingnian/node_modules/gulp-autoprefixer/node_modules/object-assign,
npm WARN unmet dependency which is version 1.0.0
npm WARN unmet dependency /home/vagrant/Code/personal/30qingnian/node_modules/gulp-autoprefixer/node_modules/gulp-util requires through2@'^2.0.0' but will load
npm WARN unmet dependency /home/vagrant/Code/personal/30qingnian/node_modules/gulp-autoprefixer/node_modules/through2,
npm WARN unmet dependency which is version 0.6.5
npm WARN unmet dependency /home/vagrant/Code/personal/30qingnian/node_modules/gulp-concat/node_modules/gulp-util requires through2@'^2.0.0' but will load
npm WARN unmet dependency /home/vagrant/Code/personal/30qingnian/node_modules/gulp-concat/node_modules/through2,
npm WARN unmet dependency which is version 0.6.5

my environment

vagrant@homestead:~/Code/personal$ npm -v
2.14.4

vagrant@homestead:~/Code/personal$ gulp -v
[02:17:58] CLI version 3.9.0
[02:17:58] Local version 3.9.0

homestead version: 0.3.0
@codenodecn
Copy link

把package.json里面对应的gulp-sass版本变成2.0.4 然后重新运行 npm install

@star001007
Copy link
Author

@codenodecn

vagrant@homestead:~/Code/personal$ sudo npm install
npm WARN package.json @ No repository field.
npm WARN package.json @ No license field.

> [email protected] postinstall /home/vagrant/Code/personal/30qingnian/node_modules/gulp-sass/node_modules/node-sass/node_modules/cross-spawn/node_modules/spawn-sync
> node postinstall

npm ERR! Linux 3.19.0-25-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.1.1
npm ERR! npm  v2.14.4
npm ERR! path /home/vagrant/Code/personal/30qingnian/node_modules/gulp-sass/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/redent/node_modules/indent-string/node_modules/repeating/node_modules/is-finite/node_modules/number-is-nan/package.json.77f75000f46452909c26902c883855d1
npm ERR! code EPERM
npm ERR! errno -1
npm ERR! syscall open

npm ERR! Error: EPERM: operation not permitted, open '/home/vagrant/Code/personal/30qingnian/node_modules/gulp-sass/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/redent/node_modules/indent-string/node_modules/repeating/node_modules/is-finite/node_modules/number-is-nan/package.json.77f75000f46452909c26902c883855d1'
npm ERR!     at Error (native)
npm ERR!  { [Error: EPERM: operation not permitted, open '/home/vagrant/Code/personal/30qingnian/node_modules/gulp-sass/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/redent/node_modules/indent-string/node_modules/repeating/node_modules/is-finite/node_modules/number-is-nan/package.json.77f75000f46452909c26902c883855d1']
npm ERR!   errno: -1,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'open',
npm ERR!   path: '/home/vagrant/Code/personal/30qingnian/node_modules/gulp-sass/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/redent/node_modules/indent-string/node_modules/repeating/node_modules/is-finite/node_modules/number-is-nan/package.json.77f75000f46452909c26902c883855d1' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Linux 3.19.0-25-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.1.1
npm ERR! npm  v2.14.4
npm ERR! path npm-debug.log.4d140ded5f1215f7b1f5cc1ac44d6184
npm ERR! code ETXTBSY
npm ERR! errno -26
npm ERR! syscall rename

npm ERR! ETXTBSY: text file is busy, rename 'npm-debug.log.4d140ded5f1215f7b1f5cc1ac44d6184' -> 'npm-debug.log'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /home/vagrant/Code/personal/30qingnian/npm-debug.log

重试后,npm install , sudo npm install 都不起作用。

@Zenuncl
Copy link

Zenuncl commented Oct 16, 2015

应该是npm版本问题。2.0.4的gulp-sass对于您用的版本过高了,尝试升级一下node版本或者选一个低版本的gulp套件

@calcyu
Copy link

calcyu commented Mar 22, 2016

@codenodecn @SharkIng


npm ERR! Linux 3.19.0-25-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v5.0.0
npm ERR! npm  v3.3.6
npm ERR! path ../has-ansi/cli.js
npm ERR! code EPROTO
npm ERR! errno -71
npm ERR! syscall symlink

npm ERR! EPROTO: protocol error, symlink '../has-ansi/cli.js' -> '/home/vagrant/phphub/node_modules/gulp-asset-manifest/node_modules/.bin/has-ansi'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
npm ERR! Linux 3.19.0-25-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v5.0.0
npm ERR! npm  v3.3.6
npm ERR! path npm-debug.log.067a8ce4fd9562da62e641ff65ef5530
npm ERR! code ETXTBSY
npm ERR! errno -26
npm ERR! syscall rename

npm ERR! ETXTBSY: text file is busy, rename 'npm-debug.log.067a8ce4fd9562da62e641ff65ef5530' -> 'npm-debug.log'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /home/vagrant/phphub/npm-debug.log

请教一下是什么问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants