D:\freelancing\FlowerAppProject\WEBAPP_10_5>npm install
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
> node@11.15.0 preinstall D:\freelancing\FlowerAppProject\WEBAPP_10_5\node_modules\node
> node installArchSpecificPackage
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.2 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN @angular-material-extensions/password-strength@4.1.2 requires a peer of @angular/animations@^8.2.14 but none is installed. You must install peer dependencies yourself.
npm WARN @angular-material-extensions/password-strength@4.1.2 requires a peer of @angular/cdk@^8.2.3 but none is installed. You must install peer dependencies yourself.
npm WARN @angular-material-extensions/password-strength@4.1.2 requires a peer of @angular/common@^8.2.14 but none is installed. You must install peer dependencies yourself.
npm WARN @angular-material-extensions/password-strength@4.1.2 requires a peer of @angular/core@^8.2.14 but none is installed. You must install peer dependencies yourself.
npm WARN @angular-material-extensions/password-strength@4.1.2 requires a peer of @angular/forms@^8.2.14 but none is installed. You must install peer dependencies yourself.
npm WARN @angular-material-extensions/password-strength@4.1.2 requires a peer of @angular/material@^8.2.3 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/compiler-cli@7.2.16 requires a peer of typescript@>=3.1.1 <3.3 but none is installed. You must install peer dependencies yourself.
npm WARN @ngtools/webpack@7.3.10 requires a peer of typescript@>=2.4.0 < 3.3 but none is installed. You must install peer dependencies yourself.
npm WARN @pscoped/ngx-pub-sub@3.0.0 requires a peer of @angular/common@^8.2.11 but none is installed. You must install peer dependencies yourself.
npm WARN @pscoped/ngx-pub-sub@3.0.0 requires a peer of @angular/core@^8.2.11 but none is installed. You must install peer dependencies yourself.
npm WARN angular-image-slider@0.0.9 requires a peer of @angular/animations@^8.2.13 but none is installed. You must install peer dependencies yourself.
npm WARN ng-image-slider@2.5.0 requires a peer of @angular/common@^8.2.2 but none is installed. You must install peer dependencies yourself.
npm WARN ng-image-slider@2.5.0 requires a peer of @angular/core@^8.2.2 but none is installed. You must install peer dependencies yourself.
npm ERR! file bash
npm ERR! path bash
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn bash
npm ERR! node@11.15.0 preinstall: `node installArchSpecificPackage`
npm ERR! spawn bash ENOENT
npm ERR!
npm ERR! Failed at the node@11.15.0 preinstall 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\hunter\AppData\Roaming\npm-cache\_logs\2020-05-15T13_23_06_391Z-debug.log发布于 2020-05-15 16:56:12
首先-你已经运行npm install -g angular了吗?
如果是这样-
您是否尝试过手动安装缺少的依赖项?
npm WARN @angular-material-extensions/password-strength@4.1.2 requires a peer of @angular/animations@^8.2.14 but none is installed. You must install peer dependencies yourself.
npm WARN @angular-material-extensions/password-strength@4.1.2 requires a peer of @angular/cdk@^8.2.3 but none is installed. You must install peer dependencies yourself.
npm WARN @angular-material-extensions/password-strength@4.1.2 requires a peer of @angular/common@^8.2.14 but none is installed. You must install peer dependencies yourself.
npm WARN @angular-material-extensions/password-strength@4.1.2 requires a peer of @angular/core@^8.2.14 but none is installed. You must install peer dependencies yourself.
npm WARN @angular-material-extensions/password-strength@4.1.2 requires a peer of @angular/forms@^8.2.14 but none is installed. You must install peer dependencies yourself.
npm WARN @angular-material-extensions/password-strength@4.1.2 requires a peer of @angular/material@^8.2.3 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/compiler-cli@7.2.16 requires a peer of typescript@>=3.1.1 <3.3 but none is installed. You must install peer dependencies yourself.
npm WARN @ngtools/webpack@7.3.10 requires a peer of typescript@>=2.4.0 < 3.3 but none is installed. You must install peer dependencies yourself.
npm WARN @pscoped/ngx-pub-sub@3.0.0 requires a peer of @angular/common@^8.2.11 but none is installed. You must install peer dependencies yourself.
npm WARN @pscoped/ngx-pub-sub@3.0.0 requires a peer of @angular/core@^8.2.11 but none is installed. You must install peer dependencies yourself.
npm WARN angular-image-slider@0.0.9 requires a peer of @angular/animations@^8.2.13 but none is installed. You must install peer dependencies yourself.
npm WARN ng-image-slider@2.5.0 requires a peer of @angular/common@^8.2.2 but none is installed. You must install peer dependencies yourself.
npm WARN ng-image-slider@2.5.0 requires a peer of @angular/core@^8.2.2 but none is installed. You must install peer dependencies yourself.理论上,package.json文件应该处理这个问题,但显然不是。
在成功安装所有条目之前,您应该按下列表并手动执行npm install @angular/animations@^8.2.14等操作,然后再试一次。
由于某种原因,在您的机器上,它不会自动获取依赖--我假设您已经安装了角,或者整个项目来自您所遵循的某个教程?
发布于 2020-05-15 17:08:18
这些行意味着它试图运行bash命令,但找不到它:
npm ERR! file bash
npm ERR! path bash
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn bash
npm ERR! node@11.15.0 preinstall: `node installArchSpecificPackage`
npm ERR! spawn bash ENOENT我假设您是在没有bash的Windows操作系统下运行它(如果您不是在WSL下运行它的话)。
https://stackoverflow.com/questions/61820538
复制相似问题