完整的报错信息是:
npm ERR! code 1
npm ERR! Command failed: git submodule update -q --init --recursive
npm ERR! D:/Git/Git/mingw64/libexec/git-core\git-submodule: line 7: basena
me: command not found
npm ERR! D:/Git/Git/mingw64/libexec/git-core\git-submodule: line 7: sed: c
ommand not found
npm ERR! D:/Git/Git/mingw64/libexec/git-core\git-submodule: line 22: .: gi
t-sh-setup: file not found
参考博客:Ionic3 遇到的一些错误-submodule update -q --init --recursive
我这个是运行npm run build:dll
时报的错,只需要运行cnpm install --save-dev
便可以解决,然后重新运行npm run build:dll
,便可以运行成功,如下: