相关疑难解决方法(0)

如何解决 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13

如果我尝试安装新库,则会收到此警告。而且那个库没有安装

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\watchpack-chokidar2\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 optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\@angular\compiler-cli\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 optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})     
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\webpack-dev-server\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL …
Run Code Online (Sandbox Code Playgroud)

javascript fsevents npm angular

10
推荐指数
2
解决办法
3万
查看次数

在部署到Azure时,Npm错误不支持fsEvents平台

当我运行npm install时,我收到此错误:

npm ERR! code EBADPLATFORM npm ERR! notsup Unsupported platform for
fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current:
{"os":"win32","arch":"x64"}) npm ERR! notsup Valid OS:    darwin npm
ERR! notsup Valid Arch:  any npm ERR! notsup Actual OS:   win32 npm
ERR! notsup Actual Arch: x64
Run Code Online (Sandbox Code Playgroud)

这里已经被问到了,但是接受的答案是它是可选的并不适合我,因为我无法发布到azure,因为npm安装失败.

npm版本: 5.6.0

我试过了:

npm install --no-optional
Run Code Online (Sandbox Code Playgroud)

azure node.js npm

9
推荐指数
4
解决办法
9189
查看次数

如何修复 npm 审计报告

当我运行 npm audit 命令时

=== npm 审计安全报告 ===

`Manual Review 

 Some vulnerabilities require your attention to resolve 

 Visit https://go.npm.me/audit-guide for additional guidance `



High          ? Arbitrary File Overwrite                                     

Package       ? tar                                                          
Patched in    ? >=4.4.2                                                       
Dependency of ? @angular-devkit/build-angular [dev]                           
Path          ? @angular-devkit/build-angular > node-sass > node-gyp >tar 
More info     ? https://nodesecurity.io/advisories/803
Run Code Online (Sandbox Code Playgroud)

它的说法found 1 high severity vulnerability in 42611 scanned packages 1 vulnerability requires manual review。由于它与 相关@angular-devkit/build-angular,我担心它是否会在我的项目中产生任何其他问题。

当我运行 npm audit fix 命令时

    npm WARN optional SKIPPING …
Run Code Online (Sandbox Code Playgroud)

devkit angular-cli angular angular-cli-v7

5
推荐指数
1
解决办法
4099
查看次数

react.js中`npm install`出错

我是react.js的新手.我正在尝试安装react.js.在这方面,我跑npm install -g create-react-appcreate-react-app my-app.然后我试着运行npm install命令.但我收到了以下错误.

在此输入图像描述

reactjs

1
推荐指数
1
解决办法
114
查看次数