Error installing Solid node server

Hi,

I installed node.js succesfully (maybe) but installing solid server results following error:

sudo npm install -g solid-server

npm WARN deprecated nodemailer@3.1.8: All versions below 4.0.1 of Nodemailer are deprecated. See Status :: Nodemailer
npm WARN deprecated text-encoding@0.6.4: no longer maintained
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to “coffeescript” (no hyphen)
/usr/bin/solid → /usr/lib/node_modules/solid-server/bin/solid

spawn-sync@1.0.15 postinstall /usr/lib/node_modules/solid-server/node_modules/spawn-sync
node postinstall

internal/modules/cjs/loader.js:615
throw err;
^

Error: Cannot find module ‘/usr/lib/node_modules/solid-server/node_modules/spawn-sync/postinstall’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:613:15)
at Function.Module._load (internal/modules/cjs/loader.js:539:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:801:12)
at internal/main/run_main_module.js:21:11
npm WARN babel-preset-metalab@1.0.0 requires a peer of babel-core@^6.24.0 but none is installed. You must install peer dependencies yourself.
npm WARN babel-literal-to-ast@1.0.0 requires a peer of babel-core@>=6.0.20 but none is installed. You must install peer dependencies yourself.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! spawn-sync@1.0.15 postinstall: node postinstall
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the spawn-sync@1.0.15 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/mikael/.npm/_logs/2019-03-07T12_50_22_103Z-debug.log

Anyone able to help? System is Ubuntu 16

Which version of Node are you running? Needs to be at least 8 IIRC.

I’m using version v11.10.1.

Oh, it seems the offending package is obsolete:

I’ll try to simply remove it and see what happens.

Hmmm, so that seems to sit at the end of a long dependency chain…

Could you please file an issue about it at https://github.com/solid/node-solid-server/issues/new ?

1 Like

Issue opened:

Thanks! As noted there, the problem seems to be down a long dependency chain that I don’t think is easy to fix, so if anybody else in the forums have an idea, it would be great to hear!

1 Like

Am i missing something? There is no working Solid server and no replys in this thread…

I cannot reproduce it.

 docker run node:11-alpine npm install -g solid-server

works without errors.

Might be specific to Ubuntu 16.04, which has a binary called nodejs , but not node :
ForbesLindesay/spawn-sync#42

1 Like