Laravel Mix: Update a Node.js dependency
you can delete your node modules folder in your laravel project.
after that run :
npm install - g npm
this command will reinstall the node modules folder with upgrading node files.next, you can try and run
npm run dev
and you can also run
npm update
to update your node
hope this answer will help
Im Using Windows 10You can Download NVM for node it stands for node version managerafter you set it up, type this to your cmd
nvm versionnvm install node {version of node you want}nvm use {version of node}
hope this works for you because it works for me
I installed Node.js again from nodejs.org, rewriting old files.
However this actually downgraded npm from 4.4.5 to 4.1.2... Node.js was 2.15.5 and is now 7.5.0.
I also had to install a few modules: $ npm install autoprefixer
$ npm run dev // works now