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?

4

2 Answers 2

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

Sign up to request clarification or add additional context in comments.

3 Comments

I tried installing docker it was giving some error could not able to fix it. :(
well you can create a ticket about your docker issue :), but nvm also is a greate solution
Yeah will do that then :)
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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.