安装后:无法在 wd %s %s 中的 wd un 中运行(wd=%s)

Hua*_*.He 1 npm angularjs gulp

npm 警告生命周期 angular-seed-advanced@0.0.0~postinstall: 无法在 wd %s %s (wd=%s) angular-seed-advanced@0.0.0 gulp check.versions && gulp build.bundle.rxjs && 中运行npm prune && gulp webdriver && npm run nativescript-install && node tools/install.js /Users/xxxx/Downloads/angular-seed-advanced-master

blu*_*lue 6

这个问题没有提供太多上下文,但我在运行时遇到了同样的问题

npm install 
Run Code Online (Sandbox Code Playgroud)

在 Docker 容器中构建Angular Seed 项目。就我而言,这是由于以 root 权限运行 npm。

要尝试解决此问题,请查看此答案

对我有用的是:

  • 上述答案的选项1:

    npm install --unsafe-perm

  • 不以 root 权限运行 npm