I’m not able to solve npm dependencies

Asked

Viewed 31 times

0

to receive this output when trying to use the npm i Movie-trailer command, vscode does not recognize the library.

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":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/jest-haste-map/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/watchpack-chokidar2/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack-dev-server/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

+ [email protected]
updated 1 package and audited 1679 packages in 25.795s

69 packages are looking for funding
  run `npm fund` for details

found 5 vulnerabilities (1 low, 1 moderate, 3 high)
  run `npm audit fix` to fix them, or `npm audit` for details

vscode accuses this:

module "/home/phml/netflixPrototipo/netflix-prototipo/node_modules/movie-trailer/index"
Could not find a declaration file for module 'movie-trailer'. '/home/phml/netflixPrototipo/netflix-prototipo/node_modules/movie-trailer/index.js' implicitly has an 'any' type.
  Try `npm install @types/movie-trailer` if it exists or add a new declaration (.d.ts) file containing `declare module 'movie-trailer';`ts(7016)
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.