Skip to content

Instantly share code, notes, and snippets.

@mark-alfonso
Last active October 19, 2017 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mark-alfonso/9588c251dff9481c9482bc6ac6ffadd2 to your computer and use it in GitHub Desktop.
Save mark-alfonso/9588c251dff9481c9482bc6ac6ffadd2 to your computer and use it in GitHub Desktop.
NPM install issue with the new Larave Mix
# 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