如果我尝试安装新库,则会收到此警告。而且那个库没有安装
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) 当我运行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) 当我运行 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) 我是react.js的新手.我正在尝试安装react.js.在这方面,我跑npm install -g create-react-app和create-react-app my-app.然后我试着运行npm install命令.但我收到了以下错误.
angular ×2
npm ×2
angular-cli ×1
azure ×1
devkit ×1
fsevents ×1
javascript ×1
node.js ×1
reactjs ×1