npm install -g browser-sync这个之后出错 还有人吗 我都感觉没人回答问题了

npm WARN deprecated express@2.5.11: express 2.x series is deprecated

npm WARN deprecated connect@1.9.2: connect 1.x series is deprecated

npm ERR! path ../lib/node_modules/browser-sync/bin/browser-sync.js

npm ERR! code EACCES

npm ERR! errno -13

npm ERR! syscall symlink

npm ERR! Error: EACCES: permission denied, symlink '../lib/node_modules/browser-sync/bin/browser-sync.js' -> '/usr/local/bin/browser-sync'

npm ERR!     at Error (native)

npm ERR!  { Error: EACCES: permission denied, symlink '../lib/node_modules/browser-sync/bin/browser-sync.js' -> '/usr/local/bin/browser-sync'

npm ERR!     at Error (native)

npm ERR!   cause: 

npm ERR!    { Error: EACCES: permission denied, symlink '../lib/node_modules/browser-sync/bin/browser-sync.js' -> '/usr/local/bin/browser-sync'

npm ERR!        at Error (native)

npm ERR!      errno: -13,

npm ERR!      code: 'EACCES',

npm ERR!      syscall: 'symlink',

npm ERR!      path: '../lib/node_modules/browser-sync/bin/browser-sync.js',

npm ERR!      dest: '/usr/local/bin/browser-sync' },

npm ERR!   stack: 'Error: EACCES: permission denied, symlink \'../lib/node_modules/browser-sync/bin/browser-sync.js\' -> \'/usr/local/bin/browser-sync\'\n    at Error (native)',

npm ERR!   errno: -13,

npm ERR!   code: 'EACCES',

npm ERR!   syscall: 'symlink',

npm ERR!   path: '../lib/node_modules/browser-sync/bin/browser-sync.js',

npm ERR!   dest: '/usr/local/bin/browser-sync' }

npm ERR! 

npm ERR! Please try running this command again as root/Administrator.

npm ERR! A complete log of this run can be found in:

npm ERR!     /Users/feifengrifangde/.npm/_logs/2017-09-15T01_05_09_794Z-debug.log

提问者网名最难取源自课程:浏览器实时刷新工具BrowserSync...提问时间:2017-09-15 16:21我来回答
3回答
冷月无声
回复冷月无声赞同01小时前

把你的nodd.js再重新安装下,然后再去装browsersync

    网名最难取
    回复网名最难取赞同01星期前

    安装成功了 刚刚找教程试了试加sudo就可以了

      Peter Zhu
      回复Peter Zhu赞同01星期前

      node.js安装成功了吗?