Last active
October 19, 2017 16:16
-
-
Save mark-alfonso/9588c251dff9481c9482bc6ac6ffadd2 to your computer and use it in GitHub Desktop.
NPM install issue with the new Larave Mix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Linux VM (Homestead) on a Windows 10 host | |
# Doing npm install --no-bin-links on Laravel 5.5 results to an error | |
# added info: we migrated from Laravel 5.2 | |
# to fix, install yarn | |
$ sudo npm install -g yarn | |
# delete your node_modules folder (optional but to be safe, do this as well) | |
$ rm -rf node_modules | |
# clear cache, install again but using yarn | |
$ composer clear-cache | |
$ sudo npm cache clear -f | |
$ sudo yarn install --no-bin-links | |
# no need to do this if not Windows | |
$ yarn global add cross-env --no-bin-links | |
# run dev | |
$ yarn run dev | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment