Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Homstead version #606

Open
GrazianoC opened this issue Apr 26, 2023 · 4 comments
Open

Homstead version #606

GrazianoC opened this issue Apr 26, 2023 · 4 comments

Comments

@GrazianoC
Copy link

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
Copy link
Collaborator

lley154 commented Apr 26, 2023

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
Copy link
Author

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

  • S,O Windows 11
  • Vagrant 2.3.4
  • Node 18.16
  • laravel/Homestead 14.2

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 [email protected]" 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
Copy link
Collaborator

lley154 commented Apr 27, 2023

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
Copy link
Member

xlcrr commented Mar 31, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants