#Sanctum Failed to open stream: Permission denied

21 messages · Page 1 of 1 (latest)

shut igloo
#

Sounds like you haven't set up XAMPP correctly. Any reason you're not using a recommended approach from the Laravel docs, such as Sail or Herd?

glacial dune
#

Read the documentation and use Herd if you're new, when you get more experience you will be able to switch around for your needs.

shut igloo
#

Why are you continuing when the very first step is failing? You can't continue if that fails...

#

So yeah, then you'd obviously see more errors

#

Well, it looks like you don't have the package installed

glacial dune
#

Your system is at fault with permissions

#

Have you updated composer with self-update?

#

Uninstall and reinstall composer

#

Use the official installer from the website

#

uninstall it and delete the dir it refers to and try again then

shut igloo
#

I'd honestly recommend to start from scratch and use Herd, as mentioned earlier. The setup is much easier, everything is bundled, including composer etc. Not to mention, you don't have to mess with XAMPP and change document_root etc

glacial dune
#

Looks like you're working of a school/work computer and your permissions are not set right if it doesn't work

#

Or you can use a package manager for Windows such as Scoop, that installs things into your user home dir - no permission errors

#

what terminal are you launching? is it through XAMPP? are you runing xampp as admin?

#

but again, maybe just use herd or start over and work step by step

#

dont run as admin

#

sounds like ur windows is cooked

#

again, i'd recommend using a package manager like scoop on windows

#

it'll install into your user home dir, which means no permission errors

#

and use powershell instead of cmd, open "terminal" on ur machine

#

if its not installed, install it from windows store or github