ok, I followed the step provided here are errors I get (I'm not familiar with the nodejs environment)
[email protected] install /home/rony/Documents/node-v9.7.1-linux-x86/bin/node_modules/farmhash
node-gyp rebuild
gyp ERR! clean error
gyp ERR! stack Error: EACCES: permission denied, rmdir 'build'
gyp ERR! System Linux 4.4.0-51-generic
gyp ERR! command "/usr/bin/nodejs" "/home/rony/Documents/node-v9.7.1-linux-x86/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/rony/Documents/node-v9.7.1-linux-x86/bin/node_modules/farmhash
gyp ERR! node -v v9.7.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
[email protected] install /home/rony/Documents/node-v9.7.1-linux-x86/bin/node_modules/integer
node tools/install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/rony/Documents/node-v9.7.1-linux-x86/bin/node_modules/integer/build'
gyp ERR! System Linux 4.4.0-51-generic
gyp ERR! command "/usr/bin/nodejs" "/home/rony/Documents/node-v9.7.1-linux-x86/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/rony/Documents/node-v9.7.1-linux-x86/bin/node_modules/integer
gyp ERR! node -v v9.7.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
[email protected] postinstall /home/rony/Documents/node-v9.7.1-linux-x86/bin/node_modules/gifsicle
node lib/install.js
⚠ EACCES: permission denied, mkdir '/home/rony/Documents/node-v9.7.1-linux-x86/bin/node_modules/gifsicle/vendor'
⚠ gifsicle pre-build test failed
ℹ compiling from source
/home/rony/Documents/node-v9.7.1-linux-x86/bin/node_modules/each-async/node_modules/onetime/index.js:15
throw new Error(fnName + ' can only be called once.');
^
Error: callback() can only be called once.
at onetime (/home/rony/Documents/node-v9.7.1-linux-x86/bin/node_modules/each-async/node_modules/onetime/index.js:15:11)
at /home/rony/Documents/node-v9.7.1-linux-x86/bin/node_modules/download/index.js:156:5
at ConcatStream. (/home/rony/Documents/node-v9.7.1-linux-x86/bin/node_modules/concat-stream/index.js:36:43)
at ConcatStream.emit (events.js:132:15)
at finishMaybe (/home/rony/Documents/node-v9.7.1-linux-x86/bin/node_modules/readable-stream/lib/_stream_writable.js:620:14)
at endWritable (/home/rony/Documents/node-v9.7.1-linux-x86/bin/node_modules/readable-stream/lib/_stream_writable.js:628:3)
at ConcatStream.Writable.end (/home/rony/Documents/node-v9.7.1-linux-x86/bin/node_modules/readable-stream/lib/_stream_writable.js:584:41)
at DuplexWrapper.onend (/home/rony/Documents/node-v9.7.1-linux-x86/bin/node_modules/readable-stream/lib/_stream_readable.js:577:10)
at Object.onceWrapper (events.js:219:13)
at DuplexWrapper.emit (events.js:132:15)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"ia32"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/farmhash):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/integer):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: node tools/install
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: node lib/install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/rony/.npm/_logs/2018-03-02T12_48_56_161Z-debug.log