Support the ongoing development of Laravel.io →
Authentication Blade
Last updated 1 year ago.

lse123, rezwan-hossain liked this thread

2

FAILING //// npm install //// npm run dev //// WHAT TO DO...?

Last login: Wed Jun 24 18:00:56 2020 from 10.0.2.2 vagrant@homestead:~$ cd MyApp/ vagrant@homestead:~/MyApp$ npm install npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/watchpack/node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code EPROTO npm ERR! syscall symlink npm ERR! path ../@babel/parser/bin/babel-parser.js npm ERR! dest /home/vagrant/MyApp/node_modules/.bin/parser npm ERR! errno -71 npm ERR! EPROTO: protocol error, symlink '../@babel/parser/bin/babel-parser.js' -> '/home/vagrant/MyApp/node_modules/.bin/parser'

npm ERR! A complete log of this run can be found in: npm ERR! /home/vagrant/.npm/_logs/2020-06-25T20_34_43_066Z-debug.log vagrant@homestead:~/MyApp$ exit logout Connection to 127.0.0.1 closed.

lwdls@PC8 MINGW64 /f/htdocs_xampp/Laravel/Homestead2020 (master) $ vagrant suspend ==> homestead: Saving VM state and suspending execution...

lwdls@PC8 MINGW64 /f/htdocs_xampp/Laravel/Homestead2020 (master) $ vagrant up Bringing machine 'homestead' up with 'virtualbox' provider... ==> homestead: Checking if box 'laravel/homestead' version '9.4.0' is up to date... ==> homestead: A newer version of the box 'laravel/homestead' is available and already ==> homestead: installed, but your Vagrant machine is running against ==> homestead: version '9.4.0'. To update to version '9.5.1', ==> homestead: destroy and recreate your machine. ==> homestead: Resuming suspended VM... ==> homestead: Booting VM... ==> homestead: Waiting for machine to boot. This may take a few minutes... homestead: SSH address: 127.0.0.1:2222 homestead: SSH username: vagrant homestead: SSH auth method: private key ==> homestead: Machine booted and ready! ==> homestead: Machine already provisioned. Run vagrant provision or use the --provision ==> homestead: flag to force provisioning. Provisioners marked to run always will still run.

lwdls@PC8 MINGW64 /f/htdocs_xampp/Laravel/Homestead2020 (master) $ vagrant ssh Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-91-generic x86_64)


| | | | | | | |__ ___ _ __ ___ ___ | | ___ __ _ | | | ' \ / _ | ' _ \ / _ \/ __| __/ _ \/ _ |/ ` | | | | | () | | | | | | _/_ \ || __/ (| | (| | || ||_/|| || |_|_||/__|_,|_,|

  • Homestead v10.9.1

  • Settler v9.5.1 (Virtualbox, Parallels, Hyper-V, VMware)

  • Canonical Livepatch is available for installation.

0 packages can be updated. 0 updates are security updates.

Last login: Thu Jun 25 20:34:01 2020 from 10.0.2.2 vagrant@homestead:~$ cd MyApp/ vagrant@homestead:~/MyApp$ npm run dev

@ dev /home/vagrant/MyApp npm run development

@ development /home/vagrant/MyApp cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

sh: 1: cross-env: not found npm ERR! code ELIFECYCLE npm ERR! syscall spawn npm ERR! file sh npm ERR! errno ENOENT npm ERR! @ development: cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the @ development script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/vagrant/.npm/_logs/2020-06-25T20_39_29_707Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @ dev: npm run development npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @ dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/vagrant/.npm/_logs/2020-06-25T20_39_29_717Z-debug.log vagrant@homestead:~/MyApp$

0

Maybe you didn't update the APP_URL in the .env file. Have a look in the development console to see where the css is loaded from. With respect to node error have a look at https://stackoverflow.com/questions/42308879/npm-err-code-elif...

0

APP_DEBUG=true APP_URL=http://localhost

this is // what this APP_URL have to be???

0

is this correct??

APP_URL=http://localhost

0

It should be APP_URL=http://homestead2.test. Please mark this thread as resolved if that works. I always use the '.local' domain. Other domains might cause issues on various browsers. So if changing app URL doesn't work consider changing the URL in homestead (and hosts file).

0

DOES NOT WORK ============ vagrant@homestead:~$ cd MyApp vagrant@homestead:~/MyApp$ php artisan ui bootstrap Bootstrap scaffolding installed successfully. Please run "npm install && npm run dev" to compile your fresh scaffolding. vagrant@homestead:~/MyApp$ npm install && npm run dev npm WARN deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1 npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":"<8.10.0"} (current: {"node":"12.16.1","npm":"6.14.5"}) npm WARN notsup Not compatible with your version of node/npm: [email protected] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/watchpack/node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code EPROTO npm ERR! syscall symlink npm ERR! path ../@babel/parser/bin/babel-parser.js npm ERR! dest /home/vagrant/MyApp/node_modules/.bin/parser npm ERR! errno -71 npm ERR! EPROTO: protocol error, symlink '../@babel/parser/bin/babel-parser.js' -> '/home/vagrant/MyApp/node_modules/.bin/parser'

npm ERR! A complete log of this run can be found in: npm ERR! /home/vagrant/.npm/_logs/2020-06-30T15_24_59_841Z-debug.log vagrant@homestead:~/MyApp$

0

I appears you're using vagrant on Windows. In windows there are known issues with symlinks. https://github.com/svpernova09/docs/blob/3e7172199f845bf8603e6...

0

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| ... ... config.vm.provider "virtualbox" do |v| v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"] end ... ... end

ERROR AGAIN

vagrant@homestead:~$ cd MyApp/ vagrant@homestead:~/MyApp$ npm install && npm run dev npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/watchpack/node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code EPROTO npm ERR! syscall symlink npm ERR! path ../@babel/parser/bin/babel-parser.js npm ERR! dest /home/vagrant/MyApp/node_modules/.bin/parser npm ERR! errno -71 npm ERR! EPROTO: protocol error, symlink '../@babel/parser/bin/babel-parser.js' -> '/home/vagrant/MyApp/node_modules/.bin/parser'

npm ERR! A complete log of this run can be found in: npm ERR! /home/vagrant/.npm/_logs/2020-07-01T04_10_34_492Z-debug.log vagrant@homestead:~/MyApp$

0

Can manually add Booptstrap 4 and js/css in /public/...?

without scaffolding https://laravel.com/docs/7.x/frontend

for now?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.