Loopback: Failed to install strongloop

Created on 1 Feb 2016  路  10Comments  路  Source: strongloop/loopback

I got the following error message:

npm WARN lifecycle [email protected]~preinstall: cannot run in wd %s %s (wd=%s) [email protected] node .sl-blip.js /usr/local/lib/node_modules/.staging/strong-arc-e089ca568e2a49f714e3744a579cc8f1
npm WARN install:[email protected] ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/strongloop/node_modules/ast-types/node_modules/depd' -> '/usr/local/lib/node_modules/strongloop/node_modules/express-session/node_modules/depd'

Please help, thanks.

Most helpful comment

I had the same issue, even if install strong-arc separately without errors , only with npm install -g strongloop the same error appears.

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: modern-syslog@^1.1.2 (node_modules\strongloop\n
):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wan
:"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: modern-syslog@^1.x (node_modules\strongloop\nod
ornode_modules\modern-syslog):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wan
:"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\strongloopnode_mod
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] preinstall: `npm install node-pre
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 4294963214
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Filesnodejsnode.exe" "C:\Users\TCP4\AppData\Roaming\npm\no
-cli.js" "install" "-g" "strongloop"
npm ERR! node v6.7.0
npm ERR! npm v3.10.8
npm ERR! file C:\WINDOWS\system32\cmd.exe
npm ERR! path C:\WINDOWS\system32\cmd.exe
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn C:\WINDOWS\system32\cmd.exe

npm ERR! [email protected] preinstall: node .sl-blip.js
npm ERR! spawn C:\WINDOWS\system32\cmd.exe ENOENT
npm ERR!
npm ERR! Failed at the [email protected] preinstall script 'node .sl-blip.js'.
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 strong-arc package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node .sl-blip.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs strong-arc
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls strong-arc
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\TCP4\npm-debug.log
npm ERR! code 1

node 6.7.0
npm 3.10.8
windows 10 x64

All 10 comments

@zhouhao27 Are you on windows?

@sam-github Are you the right person to take a look at this issue?

I've encountered an error like this in the past, which was caused by a very, very outdated npm. I suggest updating npm with npm install -g npm or sudo npm install -g npm depending on your machine.

@0candy Not really. Its an npm bug, nothing we can do about it but report upstream. But report is missing:

  • node version
  • npm version
  • platform

As @noderat said, this is almost certainly Windows, and almost certainly on an outdated version of npm. Update npm, it was a rats nest of Windows bugs until npm v2. And still not great on Windows until npm v3.

@zhouhao27 Please follow @sam-github's suggestion and report it upstream at https://github.com/npm/npm. Closing this issue as it is not LoopBack specific.

@sam-github TY for the input.

I had the same issue, even if install strong-arc separately without errors , only with npm install -g strongloop the same error appears.

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: modern-syslog@^1.1.2 (node_modules\strongloop\n
):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wan
:"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: modern-syslog@^1.x (node_modules\strongloop\nod
ornode_modules\modern-syslog):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wan
:"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\strongloopnode_mod
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] preinstall: `npm install node-pre
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 4294963214
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Filesnodejsnode.exe" "C:\Users\TCP4\AppData\Roaming\npm\no
-cli.js" "install" "-g" "strongloop"
npm ERR! node v6.7.0
npm ERR! npm v3.10.8
npm ERR! file C:\WINDOWS\system32\cmd.exe
npm ERR! path C:\WINDOWS\system32\cmd.exe
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn C:\WINDOWS\system32\cmd.exe

npm ERR! [email protected] preinstall: node .sl-blip.js
npm ERR! spawn C:\WINDOWS\system32\cmd.exe ENOENT
npm ERR!
npm ERR! Failed at the [email protected] preinstall script 'node .sl-blip.js'.
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 strong-arc package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node .sl-blip.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs strong-arc
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls strong-arc
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\TCP4\npm-debug.log
npm ERR! code 1

node 6.7.0
npm 3.10.8
windows 10 x64

+1 Same as @rikantro...starting today.

FWIW: If I downgrade to [email protected] and keep [email protected] I do not see this problem any more.

Actually, I downgrade as @tamitutor said, but appears the same error

Please comment on the open issue at https://github.com/strongloop/loopback/issues/2714

Was this page helpful?
0 / 5 - 0 ratings