I am new to Angular. I was going through Angular 7 official documents and tried to install angular-in-memory-web-api using npm. But it shows the following error.
Command:
npm install angular-in-memory-web-api --save
Error:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ [email protected]
updated 1 package and audited 42612 packages in 12.78s
found 1 high severity vulnerability
run `npm audit fix` to fix them, or `npm audit` for details
I tried to fix the error using npm audit fix but it doesn't help. Shows the following error.
Command:
npm audit fix
Error:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
up to date in 9.474s
fixed 0 of 1 vulnerability in 42612 scanned packages
1 vulnerability required manual review and could not be updated
How can I fix this problem?
npm install -g npm@latestbut this also shows this error: pastebin.ubuntu.com/p/TjW5D7tfnp