问题如下:

  1. npm ERR! Linux 3.10.0-229.14.1.el7.x86_64
  2. npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
  3. npm ERR! node v6.9.1
  4. npm ERR! npm v3.10.8
  5. npm ERR! path ../acorn/bin/acorn
  6. npm ERR! code EPROTO
  7. npm ERR! errno -71
  8. npm ERR! syscall symlink
  9. npm ERR! EPROTO: protocol error, symlink '../acorn/bin/acorn' -> '/usr/share/nginx/html/gopath/src/golang123/website/node_modules/.bin/acorn'
  10. npm ERR!
  11. npm ERR! If you need help, you may report this error at:
  12. npm ERR! <https://github.com/npm/npm/issues>
  13. npm ERR! Please include the following file with any support request:
  14. npm ERR! /usr/share/nginx/html/gopath/src/golang123/website/npm-debug.log
  15. npm ERR! code 1

要修复这个问题,直接用 npm install --no-bin-links 这个命令好了。

参考这个

分类: web

标签:   npm   nodejs