-
Notifications
You must be signed in to change notification settings - Fork 479
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
Pnpm: command not found #606
Comments
Ping @SamuelMTeixeira |
The error is happening because you haven't configured the command's alias. If you use dev container (which I usually use) or docker exec, it will work normally. I'll make the change in /bin/sail to make In order for sail to work, you'll also need to set the environment variable, or you could change the manual installation to |
@SamuelMTeixeira No I'm not using devcontainer. I tried it now and still getting same error. Even using However even if I messed things up (which I am master at) and devcontainer works it kinda forces me to use it or do extra things. I would prefer
rather than
so my thought is to change pnpm installation via npm since it "works out of the box". I see no extra problem in it as npm already installed at this point. And this way |
A PR was provided so let's continue the discussion there. Thanks. |
Sail Version
1.23.3
Laravel Version
10.19.0
PHP Version
8.2
Operating System
Linux
OS Version
Fedora 38 / Ubuntu 22.04
Description
Release 1.23.3 adds support for pnpm but I cannot "confirm" it
On a fresh Laravel + Sail installation
I receive error command not found.
which pnpm
prints nothing for me. I've installed new project, renamed image, runsail build --no-cache
- same result. Repeated on remote Ubuntu server - nothingIf I change this line from
curl -fsSL https://get.pnpm.io/install.sh | bash -
intonpm install -g pnpm
(this is allowed installation method plus at this point npm is already installed) I finally can get response onwhich pnpm
(prints/usr/bin/pnpm
)Maybe I'm doing something wrong on how to use it via shell. However all other services responds on
which ...
command so I'm expecting same result for pnpmP.S. It is also good to proxy
pnpm
command intosail pnpm ...
Steps To Reproduce
The text was updated successfully, but these errors were encountered: