mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-09 18:19:23 +01:00
install: attempt to make pnpm consistent with package.json packageManager whether or not corepack is present
This commit is contained in:
parent
7174c79d4a
commit
2a0117b7f1
3
install
3
install
@ -64,6 +64,9 @@ fi
|
|||||||
if hash corepack 2> /dev/null; then
|
if hash corepack 2> /dev/null; then
|
||||||
corepack enable --install-directory ~/.local/bin/
|
corepack enable --install-directory ~/.local/bin/
|
||||||
corepack enable npm --install-directory ~/.local/bin/
|
corepack enable npm --install-directory ~/.local/bin/
|
||||||
|
corepack pnpm config set manage-package-manager-versions=true
|
||||||
|
elif hash pnpm 2> /dev/null; then
|
||||||
|
pnpm config set manage-package-manager-versions=true
|
||||||
else
|
else
|
||||||
echo "WARNING! corepack is not installed."
|
echo "WARNING! corepack is not installed."
|
||||||
sleep 3
|
sleep 3
|
||||||
|
Loading…
Reference in New Issue
Block a user