简体   繁体   中英

how to install npm for laravel on windows 10 and solve this problem?

I got below error while I try to run npm install.

type:

npm install

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

audited 17160 packages in 10.766s
found 2 moderate severity vulnerabilities
  run `npm audit fix` to fix them, or `npm audit` for details

It is not an error, it is just a warning. The warning indicates you are using Windows OS where the package has been designed for MacOS.

Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"}(current: {"os":"win32","arch":"x64"})

You can skip this warning and go forward. It will not effect in any ways in your development.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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