release branch.Windows 10 Home 1903
---
ip: "192.168.10.10"
memory: 2048
cpus: 2
provider: virtualbox
authorize: C:\Users\Ollie\ssh-keys\basic.pub
keys:
- C:\Users\Ollie\ssh-keys\basic.ppk
folders:
- map: C:\Users\Ollie\Code\tests\2020-06-06-laravel\
to: /home/vagrant/laravel-test
sites:
- map: laravel-test.develop
to: /home/vagrant/laravel-test/lara-inst/public/
databases:
- homestead
features:
- mariadb: false
- ohmyzsh: false
- webdriver: false
# ports:
# - send: 50000
# to: 5000
# - send: 7777
# to: 777
# protocol: udp
https://gist.github.com/teleclimber/01531e4d4a25baf9b5fff39cccae6e03
I am following this tutorial as I try to learn Laravel. I would expect things to work smoothly.
https://laravel-news.com/your-first-laravel-application
Running npm install causes this error:
npm ERR! code EPROTO
npm ERR! syscall symlink
npm ERR! path ../@babel/parser/bin/babel-parser.js
npm ERR! dest /home/vagrant/laravel-test/lara-inst/node_modules/.bin/parser
npm ERR! errno -71
npm ERR! EPROTO: protocol error, symlink '../@babel/parser/bin/babel-parser.js' -> '/home/vagrant/laravel-test/lara-inst/node_modules/.bin/parser'
npm ERR! A complete log of this run can be found in:
npm ERR! /home/vagrant/.npm/_logs/2020-06-09T23_05_35_417Z-debug.log
I found this issue that points to this solution that supposedly solves the problem.
I added these lines to my vagranfile after Vagrant.configure:
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provider "virtualbox" do |v|
v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
end
But it doesn't work. I destroy the VM and vagrant up again and npm install still fails.
What am I missing?
Everything looks fine from here. I really don't know. This seems to be a common issue with Windows & Virtualbox. My reccomendation is to always run these kinds of commands on your host OS because you'll always have more RAM & CPUs there
@teleclimber I have overcome a number of these issues by starting homestead from an administrator command prompt (Right click on command prompt and select "Run as Administrator").
If you have done it right the title of your command prompt should start with Administrator. Run your "homestead up" command there and things will probably work a bit more reliably.
OK, I'll try these suggestions when I get the time again. Thanks for the help.
Most helpful comment
Everything looks fine from here. I really don't know. This seems to be a common issue with Windows & Virtualbox. My reccomendation is to always run these kinds of commands on your host OS because you'll always have more RAM & CPUs there