Skip to content

Conversation

@elchininet
Copy link
Collaborator

This pull request migrates the package manager of the repository from yarn to pnpm. Since a while, pnpm has demonstrated to be a better alternative in terms of speed, disk space efficiency, dependency isolation and security.

As part of this pull request, dependencies have been updated to their latest version.

@Mariusthvdb Mariusthvdb merged commit ade7543 into main May 19, 2025
@elchininet elchininet deleted the migrate_package_manager_to_pnpm branch May 20, 2025 06:09
@elchininet
Copy link
Collaborator Author

@Mariusthvdb,
Now that this is merged, first thing to check is if you have any of the needed tools already installed. Open a console and run these commands one by one and let me know if any of them returns something different from command not found:

node -v
npm -v
pnpm -v

@Mariusthvdb
Copy link
Owner

Installed where? On my regular working computer (MacBook) or in GitHub repo?

@elchininet
Copy link
Collaborator Author

Yes, in your regular computer

@Mariusthvdb
Copy link
Owner

no not installed.. all command not found ;-)

@elchininet
Copy link
Collaborator Author

Perfect, let's install pnpm first. You need to run from these commands the first one in the section On POSIX systems:

curl -fsSL https://get.pnpm.io/install.sh | sh -

At the end you should get something like this in your console:

Created /root/.bashrc

Next configuration changes were made:
export PNPM_HOME="/root/.local/share/pnpm"
case ":$PATH:" in
  *":$PNPM_HOME:"*) ;;
  *) export PATH="$PNPM_HOME:$PATH" ;;
esac

To start using pnpm, run:
source /root/.bashrc

After that you need to run what it recommends:

source /root/.bashrc

After that if you run this command you should get the pnpm version printed in the console.

pnpm -v

@Mariusthvdb
Copy link
Owner

Mariusthvdb commented May 21, 2025

yep managed all that and got 10.11.0 as last return on the pnpm -v

just to be sure, after the source etc .zshrc command nothing happened? it just goes to the next line in the terminal
is that ok?

@elchininet
Copy link
Collaborator Author

elchininet commented May 21, 2025

yep managed all that and got 10.11.0 as last return on the pnpm -v

Perfect

just to be sure, after the source etc .zshrc command nothing happened? it just goes to the next line in the terminal
is that ok?

Yes, it just reloads your configuration to get the changes the installer applied

@elchininet
Copy link
Collaborator Author

Now, let's install Node (together with npm). Let's use version 20 which is in maintenance right now, but with pnpm you can manage the Node versions easily.

Run:

pnpm env use --global 20

After that, check that the next commands give you the version of each one:

node -v
npm -v

@Mariusthvdb
Copy link
Owner

Yes, it just reload your configuration to get the changes the installer applied

how do I reload?

response is
node - v : v20.19.2
npm -v : 10.8.2

@elchininet
Copy link
Collaborator Author

how do I reload?

You already did it, the command that you wrote did it.

response is
node - v : v20.19.2
npm -v : 10.8.2

Super, you have the three tools already installed, but I forgot an important one: git.

Follow these instructions. If you run git -v and it gives you the version you don't need to do anything, but if not, you need to choose an installation method (I recommend the homebrew one).

@Mariusthvdb
Copy link
Owner

I get
git version 2.39.5 (Apple Git-154)

@elchininet
Copy link
Collaborator Author

Then you have git already installed. Everything is ready, I'll give you instructions later about how to manage the releases in the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants