Dalivan's avatar

npm WARN deprecated

Would you mind helping me? give a solution

vagrant@homestead:~/code/homestead$ php artisan ui bootstrap --auth
Bootstrap scaffolding installed successfully.
Please run "npm install && npm run dev" to compile your fresh scaffolding.
Authentication scaffolding generated successfully.


vagrant@homestead:~/code/homestead$ npm install && npm run dev
npm WARN deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/chokidar/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 notsup Unsupported engine for [email protected]: wanted: {"node":"<8.10.0"} (current: {"node":"14.4.0","npm":"6.14.5"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/watchpack/node_modules/chokidar/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 ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /home/vagrant/code/homestead/node_modules/yargs/node_modules/is-fullwidth-code-point/package.json.1580690678
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/home/vagrant/code/homestead/node_modules/yargs/node_modules/is-fullwidth-code-point/package.json.1580690678'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/vagrant/.npm/_logs/2020-06-30T22_32_36_046Z-debug.log

0 likes
4 replies
MortenS's avatar

Try downgrading to Node v12, delete node_modules and install again.

1 like
Dalivan's avatar

Finally I get a response. For a while I Uninstall homestead then move to valet, even though I have been using homestead for 7 months. I'll try your suggested. Thanks for your response.

Dalivan's avatar

Hi.. I was follow your instruction, so far so good but after that I have some information from npm found 317 low severity vulnerabilities:

[npm WARN deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/watchpack/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/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 1085 packages from 494 contributors and audited 1091 packages in 39.766s

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

found 317 low severity vulnerabilities
  run `npm audit fix` to fix them, or `npm audit` for details

> @ dev /home/vagrant/code/helloworld
> npm run development


> @ development /home/vagrant/code/helloworld
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

 	Additional dependencies must be installed. This will only take a moment.
 
 	Running: npm install vue-template-compiler --save-dev --production=false
 
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/watchpack/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

 	Okay, done. The following packages have been installed and saved to your package.json dependencies list:
 
 	- vue-template-compiler
 
98% after emitting SizeLimitsPlugin

 DONE  Compiled successfully in 14889ms                                

I has run 'npm audit fix' but problem not solve.

[vagrant@homestead:~/code/helloworld$ npm audit fix
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/watchpack/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

up to date in 7.628s

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

fixed 0 of 317 vulnerabilities in 1093 scanned packages
  317 vulnerabilities required manual review and could not be updated

Please help, thanks.

leonan's avatar

If you're able to continue your work you should do it. Other then that if you're just trying to satisfy the vulnerabilities message, you'll be doing that for a very long time.

Also running npm in my host machine worked out smoothly rather then inside of homestead.

Please or to participate in this conversation.