strongloop/loopback4-example-microservices

Error when Npm I

waytoharish opened this issue · 6 comments

Getting below issue when when running npm i with version-
C:\Harish\DIP\loopback4\loopback4-example-microservices>node -v
v9.11.2

C:\Harish\DIP\loopback4\loopback4-example-microservices>npm -v
5.6.0

Below is error log --

loopback4-example-microservices@1.0.0 postinstall C:\Harish\DIP\loopback4\loopback4-example-microservices
bin/install

'bin' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! loopback4-example-microservices@1.0.0 postinstall: bin/install
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the loopback4-example-microservices@1.0.0 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! C:\Users\HarishSharma\AppData\Roaming\npm-cache_logs\2018-12-04T12_23_52_564Z-debug.log

I have the same problem, I use node 11.6.0, npm 6.4.1 in windows 10 with vscode.

I have some problem. What I must to do?

Ok, Problem is solved. I'm add only path to git bash.exe npm config set script-shell "C:\Program Files\git\bin\bash.exe"

@pavelgronsky Thank you for providing the solution!
@waytoharish @andenis You could try #100 (comment), let me know if you still have the problem.

Problem happens also in Linux. How to solve it?

Just replace the postinstall in the package.json by:
postinstall: "cd services/account && npm i && cd ../customer && npm i && cd ../transaction && npm i && cd ../facade && npm i"