0

I am receiving the following error when I try to npm install jspdf --save:

npm ERR! code 128
npm ERR! Command failed: git submodule update -q --init --recursive
npm ERR! error: waitpid for git-submodule failed: No child processes

I installed latest version of npm and still the same:

Angular CLI: 6.2.3
Node: 10.16.0
OS: win32 x64
Angular: 6.1.9
NPM: 6.9.0

Any idea what is causing this?

TheodoreTsg
  • 510
  • 3
  • 9
  • 23
  • delete the npm and npm-cache directories that locate in c:\myUser\AppData\Roaming. Then, execute npm install -g npm. – Dhaval Patel Jun 20 '19 at 10:05
  • Check the link : [npm install error code 128](https://stackoverflow.com/questions/35021692/npm-install-error-code-128) – Benji49 Jun 20 '19 at 10:07
  • @DhavalPatel I just did it and same issue. This is to install latest version of npm and mine is the latest. – TheodoreTsg Jun 20 '19 at 10:14

1 Answers1

2

Try running application as an Administrator (right click-> Run as Administrator), if its Windows.

Benji49
  • 44
  • 9
  • It solved my problem. I just opened cmd as Admin and then tried `npm install jspdf --save` and it worked. Thanks! – TheodoreTsg Jun 20 '19 at 10:17