Hi i am having the following error when trying to install the control-daemon with:
npm install -g gladius-control-daemon
Here is the error:
npm WARN deprecated [email protected]: Use mz or fs-extra^3.0 with Promise Support
npm WARN deprecated [email protected]: ⚠️ WARNING ⚠️ tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: https://npmjs.com/tar
loadDep:ws → cache add ▐ ╢████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:uuid → mapToRegis ▀ ╢████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:utf8 → afterAdd ▀ ╢████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine [email protected]: wanted: {"npm":">=3","node":">=6.5.0"} (current: {"node":"4.2.6","npm":"3.5.2"})
loadDep:strip-hex-prefix ▐ ╢████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:is-hex-prefixed → ▄ ╢████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
npm WARN lifecycle [email protected]~preinstall: cannot run in wd %s %s (wd=%s) [email protected] node node-scrypt-preinstall.js /root/.npm-global/lib/node_modules/.staging/scrypt-aa7f8087
/root/.npm-global/lib
└── (empty)
npm ERR! Linux 4.4.0-119-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "gladius-control-daemon"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! path /root/.npm-global/lib/node_modules/.staging/abbrev-e45d53a4
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/root/.npm-global/lib/node_modules/.staging/abbrev-e45d53a4' -> '/root/.npm-global/lib/node_modules/gladius-control-daemon/node_modules/npm/node_modules/abbrev'
npm ERR! enoent ENOENT: no such file or directory, rename '/root/.npm-global/lib/node_modules/.staging/abbrev-e45d53a4' -> '/root/.npm-global/lib/node_modules/gladius-control-daemon/node_modules/npm/node_modules/abbrev'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /root/npm-debug.log
npm ERR! code 1
After some research it appears that alanhoff/node-tar.gz repo on github is deprecated and not maintained anymore, how to work around this?
Also, /abbrev is not found in /root/.npm-global/lib/node_modules/gladius-control-daemon/node_modules/npm/node_modules, although there are plenty of others, this one is missing.
I have noticed there is another thread on installing the daemon on windows 7 and running:
npm install scrypt -g was proposed. Tried it and received the following error:
npm WARN lifecycle [email protected]~preinstall: cannot run in wd %s %s (wd=%s) [email protected] node node-scrypt-preinstall.js /root/.npm-global/lib/node_modules/.staging/scrypt-fec0a638
[email protected] install /root/.npm-global/lib/node_modules/scrypt
node-gyp rebuild
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/root/.npm-global/lib/node_modules/scrypt/build'
gyp ERR! stack at Error (native)
gyp ERR! System Linux 4.4.0-119-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /root/.npm-global/lib/node_modules/scrypt
gyp ERR! node -v v4.2.6
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm ERR! Linux 4.4.0-119-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "scrypt" "-g"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the scrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs scrypt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls scrypt
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /root/npm-debug.log
It seems like permissions are not set up right but all priviledges have been granted to .npm-global recursively.
What am I omitting?