简体   繁体   English

无法启动节点项目

[英]unable to start node project

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

First - have you run npm install -g angular already?首先 - 你已经运行npm install -g angular了吗?

If so -如果是这样 -

Have you tried to manually install the missing dependencies?您是否尝试过手动安装缺少的依赖项?

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.

The package.json file should take care of this in theory, but obviously it is not. package.json 文件理论上应该解决这个问题,但显然不是。

You should go down the list and manually npm install @angular/animations@^8.2.14 etc until all the entries are installed successfully and try again.您应该将 go 从列表中删除并手动npm install @angular/animations@^8.2.14等,直到所有条目都安装成功,然后重试。

For some reason on your machine it's not automatically picking up the dependencies - I assume that you installed angular already or this whole project is coming from some tutorial you're following?由于某种原因,在您的机器上它不会自动获取依赖项 - 我假设您已经安装了 angular 或者整个项目来自您正在遵循的一些教程?

These lines mean that it tries to run bash command but can not find it:这些行意味着它尝试运行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

I assume that you are running it under the Windows OS, where bash is absent ( if you are not running it under WSL eg ).我假设您在 Windows 操作系统下运行它,其中 bash 不存在(如果您没有在 WSL 下运行它,例如)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM