bogon:~ hanhaibo$ sudo npm install webpack -g/usr/local/bin/webpack -> /usr/local/lib/node_modules/webpack/bin/webpack.js> [email protected] install /usr/local/lib/node_modules/webpack/node_modules/fsevents> node installnode-pre-gyp ERR! Tried to download(undefined): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.2/fse-v1.1.2-node-v51-darwin-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v51 ABI) (falling back to source compile with node-gyp) gyp ERR! clean error gyp ERR! stack Error: EACCES: permission denied, rmdir 'build'gyp ERR! System Darwin 14.5.0gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/node-gyp/bin/node-gyp.js" "clean"gyp ERR! cwd /usr/local/lib/node_modules/webpack/node_modules/fseventsgyp ERR! node -v v7.6.0gyp ERR! node-gyp -v v3.6.2gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/node-gyp/bin/node-gyp.js clean' (1)node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/webpack/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)node-pre-gyp ERR! stack     at emitTwo (events.js:106:13)node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:192:7)node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:890:16)node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)node-pre-gyp ERR! System Darwin 14.5.0node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/webpack/node_modules/fsevents/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"node-pre-gyp ERR! cwd /usr/local/lib/node_modules/webpack/node_modules/fseventsnode-pre-gyp ERR! node -v v7.6.0node-pre-gyp ERR! node-pre-gyp -v v0.6.36node-pre-gyp ERR! not ok Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/node-gyp/bin/node-gyp.js clean' (1)npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack/node_modules/fsevents):npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node install`npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1+ [email protected] 115 packages and updated 1 package in 22.694s