An error occurred after npm install -g browser-sync. Is there anyone else? I feel like no one has answered the question.
网名最难取
网名最难取 2017-09-15 16:21:15
0
4
2186

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


网名最难取
网名最难取

reply all(3)
冷月无声

Reinstall your nodd.js, and then install browsersync

网名最难取

The installation was successful. I just found a tutorial and tried adding sudo.

  • reply I saw what you said and added sudo before npm install -g browser-sync and it was OK.
    娴@.@微梦 author 2018-04-25 18:00:06
Peter Zhu

Is node.js installed successfully?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template