【发布时间】:2019-11-03 03:09:44
【问题描述】:
当我尝试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
我安装了最新版本的 npm 还是一样:
Angular CLI: 6.2.3
Node: 10.16.0
OS: win32 x64
Angular: 6.1.9
NPM: 6.9.0
知道是什么原因造成的吗?
【问题讨论】:
-
删除位于 c:\myUser\AppData\Roaming 中的 npm 和 npm-cache 目录。然后,执行 npm install -g npm。
-
@DhavalPatel 我刚刚做了同样的问题。这是为了安装最新版本的 npm 而我的是最新的。
标签: angular npm npm-install