stop-server icon indicating copy to clipboard operation
stop-server copied to clipboard

Can't Install on debian server

Open hiperbolt opened this issue 8 years ago • 4 comments

I encontered two issues, first its the fact that in debian node doesnt exist, and the program is calling for node instead of nodejs; I fixed it by making a symlink. Second issue I encontered I still can't fix:

root@chronos2:~# npm install -g stop-server

[email protected] uninstall /usr/local/lib/node_modules/stop-server node bin stop

Error: EACCES, permission denied '/root/.config/configstore/update-notifier-stop-server.json' You don't have access to this file.

at Object.fs.openSync (fs.js:436:18)
at Object.fs.readFileSync (fs.js:290:15)
at Object.create.all.get (/usr/local/lib/node_modules/stop-server/node_modules/update-notifier/node_modules/configstore/index.js:34:26)
at Object.Configstore (/usr/local/lib/node_modules/stop-server/node_modules/update-notifier/node_modules/configstore/index.js:27:44)
at new UpdateNotifier (/usr/local/lib/node_modules/stop-server/node_modules/update-notifier/index.js:34:17)
at module.exports (/usr/local/lib/node_modules/stop-server/node_modules/update-notifier/index.js:123:23)
at Object.<anonymous> (/usr/local/lib/node_modules/stop-server/bin.js:14:1)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)

npm WARN continuing anyway [email protected] uninstall: node bin stop npm WARN continuing anyway Exit status 8 npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debian

npm WARN engine [email protected]: wanted: {"node":">=0.12.0","iojs":">=1.0.0"} (current: {"node":"0.10.29","npm":"1.4.21"}) /usr/local/bin/stop-server -> /usr/local/lib/node_modules/stop-server/bin.js [email protected] /usr/local/lib/node_modules/stop-server ├── [email protected] ├── [email protected] ([email protected], [email protected]) ├── [email protected] ([email protected], [email protected], [email protected]) ├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected]) ├── [email protected] ([email protected], [email protected]) ├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) ├── [email protected] ([email protected], [email protected], [email protected], [email protected]) ├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) ├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

What I can gather is that it wants a superior version of node, which I can't install.

hiperbolt avatar Jun 15 '16 20:06 hiperbolt

I encontered two issues, first its the fact that in debian node doesnt exist, and the program is calling for node instead of nodejs; I fixed it by making a symlink.

node is the correct name of the Node.js executable. This isn't wrong.

Error: EACCES, permission denied '/root/.config/configstore/update-notifier-stop-server.json'

This seems to be a problem with configstore. See https://github.com/yeoman/configstore/issues/6

What I can gather is that it wants a superior version of node, which I can't install.

This is just a warning from npm. It may break the installation at some point in the future, but the reason why it fails now is the issue I mentioned above, not this one.

derhuerst avatar Jun 15 '16 20:06 derhuerst

Thanks I'll look into second and third point, as for the first point; in debian node isnt the name of Node.js executable. It is wrong. See it here: http://stackoverflow.com/questions/21168141/cannot-install-packages-using-node-package-manager-in-ubuntu

hiperbolt avatar Jun 15 '16 20:06 hiperbolt

@hiperbolt On Debian/Ubuntu-based distros, the package is called nodejs, but the executable is called node.

derhuerst avatar Jun 15 '16 22:06 derhuerst

looks like a permissions error, try using sudo su

deathstar avatar May 29 '19 03:05 deathstar