Oui, merci de ton conseil mais je n'arrive pas a installer Browser Sync sur mon Mac. J'obtiens invariablement une liste d'erreur de 3 km :
MBP-Fabrice:~ fabricechapot$ npm install -g browser sync
> fibers@1.0.7 install /usr/local/lib/node_modules/sync/node_modules/fibers
> node build.js || nodejs build.js
gyp: /Users/fabricechapot/.node-gyp/4.0.0/common.gypi not found (cwd: /usr/local/lib/node_modules/sync/node_modules/fibers) while reading includes of binding.gyp while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:357:16)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 14.5.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
gyp ERR! cwd /usr/local/lib/node_modules/sync/node_modules/fibers
gyp ERR! node -v v4.0.0
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok
Build failed
sh: nodejs: command not found
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "browser" "sync"
npm ERR! node v4.0.0
npm ERR! npm v2.14.3
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! fibers@1.0.7 install: `node build.js || nodejs build.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the fibers@1.0.7 install script 'node build.js || nodejs build.js'.
npm ERR! This is most likely a problem with the fibers package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node build.js || nodejs build.js
npm ERR! You can get their info via:
npm ERR! npm owner ls fibers
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/fabricechapot/npm-debug.log
Je ne comprends pas tout, j'ai fait la manip qui consiste à autoriser le dassier npm dans le répertoire /usr/local/ mais ça ne change rien. Du coup Live Reload regagne facilement des points :)