strongloop / loopback4-example-microservices

Deprecated - please use https://github.com/strongloop/loopback4-example-shopping/tree/master/kubernetes
http://loopback.io
Other
88 stars 28 forks source link

Error when Npm I #100

Open waytoharish opened 5 years ago

waytoharish commented 5 years ago

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

andenis commented 5 years ago

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

pavelgronsky commented 5 years ago

I have some problem. What I must to do?

pavelgronsky commented 5 years ago

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"

jannyHou commented 5 years ago

@pavelgronsky Thank you for providing the solution! @waytoharish @andenis You could try https://github.com/strongloop/loopback4-example-microservices/issues/100#issuecomment-466770427, let me know if you still have the problem.

huyqpham commented 5 years ago

Problem happens also in Linux. How to solve it?

ESSA-6904 commented 4 years ago

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"