0

I have two Laravel projects one will work with gulp and another will work with web pack. And now the problem is gulp is not working with latest version of node and webpack needs only latest version of node.I'm like confused how do I deal with this?

Can two different node versions be used for this two Laravel projects? Is it possible to install two versions of node in Ubuntu? How to make these two projects work with their respective node versions?

Can anybody suggest some solution for this?

06011991
  • 797
  • 2
  • 13
  • 39

2 Answers2

0

take a look at Docker https://www.docker.com/

with docker you can build & run different VM with the configurtion you need. and it's really easy tu use

hope it help

Julien Amblard
  • 121
  • 1
  • 3
0

Solved my problem. Installing libpng-dev solves problem in my ubuntu17.10.

sudo apt-get install libpng-dev

and did a full reset by running the following commands

 rm -rf node_modules
 rm package-lock.json yarn.lock
 npm cache clear --force
 npm install
 npm run dev

this is the reference link : https://github.com/JeffreyWay/laravel-mix/issues/1072

06011991
  • 797
  • 2
  • 13
  • 39