loopback icon indicating copy to clipboard operation
loopback copied to clipboard

Failed to install strongloop

Open zhouhao27 opened this issue 10 years ago • 10 comments

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.

zhouhao27 avatar Feb 01 '16 09:02 zhouhao27

@zhouhao27 Are you on windows?

superkhau avatar Feb 01 '16 20:02 superkhau

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

0candy avatar Feb 01 '16 20:02 0candy

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.

noderat avatar Feb 02 '16 00:02 noderat

@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.

sam-github avatar Feb 02 '16 15:02 sam-github

@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.

superkhau avatar Feb 02 '16 22:02 superkhau

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 or\node_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\strongloop\node_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 Files\nodejs\node.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

richard-dev-mx avatar Oct 05 '16 16:10 richard-dev-mx

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

tamitutor avatar Oct 05 '16 20:10 tamitutor

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

tamitutor avatar Oct 05 '16 20:10 tamitutor

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

richard-dev-mx avatar Oct 05 '16 23:10 richard-dev-mx

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

superkhau avatar Oct 06 '16 07:10 superkhau