Support the ongoing development of Laravel.io →
posted 1 year ago

I was trying to run this command in my vs code terminal, "npm run dev", and it produces this message. "npm WARN config global --global, --local are deprecated. Use --location=global instead" Please if there is a solution to that i need help.

0

Are you using the latest NodeJS? If not, try to update by running this npm install -g npm@latest

This deprecation has been reverted in v8.12.1 refer https://github.com/npm/cli/issues/4980#issuecomment-1145164050

p/s: If you need to use multiple version of NodeJS, you can use NVM to manage NodeJS versions. Refer https://www.freecodecamp.org/news/node-version-manager-nvm-install-guide/.

0

Sign in to participate in this thread!

PHPverse

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.