OpenLitterMap / openlittermap-web

https://opengeospatialdata.springeropen.com/articles/10.1186/s40965-018-0050-y
https://openlittermap.com
GNU General Public License v3.0
116 stars 35 forks source link

Homstead version #606

Open GrazianoC opened 1 year ago

GrazianoC commented 1 year ago

How version of laravel/homestead i install to run developer openlittermap project? when i install latest version of homestead i have a lot of issues with npm and the project not run.

can someone help me please?

lley154 commented 1 year ago

Hi - here are my notes to get openLitterMap dev env working. Hopefully this helps. You can also join the slack channel and ask questsions there as well.
Littercoin dev env setup.pdf

GrazianoC commented 1 year ago

Hi Iley154, thank for your reply but this is my situation:

The latest version of homestead have php 8.x but the project openlittermap run with php 7.3 I configured homestead.yaml with php: "7.3" parameter image

the "vagrant up" and "vagrant provision" commands finished succesfully when i run "npm install" i have this issu image therefore i run "npm install -g npm@9.6.5" command and after "npm install" this is the issue image

I try to install sudo npm install n -g and try to downgrade node.js sudo n install 10.19.0 but i have same error.

Can you help me please?

lley154 commented 1 year ago

I would suggest to get an update-to-date version of openlittermap-web code.

1.) Inside vagrant, cd ~/code 2.) mv openlittermap-web openlittermap-web.bak 3.) git checkout https://github.com/OpenLitterMap/openlittermap-web.git 4.) cd openlittermap-web 5.) npm install

You can also run npm commands (npm install, npm run watch) outside vagrant on your host machine inside the directory containing openlittermap-web. I found this better for automatic code change detection. Hopefully this works for you, I did not come accross your type of error before.

xlcrr commented 7 months ago

Hey @GrazianoC I haven't seen this issue before.

I don't run npm commands from the homestead window. I use the vm for PHP and I use my local machine for javascript

Good news - There is a new laravel client for windows released during the week

You can find it at https://herd.laravel.com/

If you are able to get it set up I would love to close this issue!