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
Add pnpm installation methods using standard OS package managers #3633
Comments
For Arch Linux, an AUR already exists, so you can safely remove the "pacman" entry. |
But it uses the plain js version of pnpm, not the one compiled to an
executable
Khải ***@***.***> ezt írta (időpont: 2021. aug. 1., V 12:51):
… For Arch Linux, an AUR <https://aur.archlinux.org/packages/pnpm/> already
exists, so you can safely remove the "pacman" entry.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3633 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOWTG6FTIIU6BI3PFGZPFDT2UKJBANCNFSM5BKAWMCQ>
.
|
If you still find the pacman version necessary then go for it. What I was trying to say is if you don't want to maintain too many targets then feel free to remove "pacman" from the list (I don't think it's going to be a huge impact, because Arch Linux users prefer their system to be lightweight, i.e. use |
Actually, isn't it better to just create an AUR (called |
I want the executable version to be the default one starting from pnpm v7. If someone would love the plain js version, we may ship that separately. |
I was trying to build the deb/rpm packages automatically with GitHub actions but no luck for now. First I tried to do it using these tools: pkg-deb and pkg-rpm However, the artifact generated by pkg-deb via GitHub action doesn't work when I try to use it on Ubuntu. When I built the artifact locally, it worked. Now I am looking into nFPM. It is not as convenient as the above tools (which reuse info from package.json) but it can build both deb and rpm with no additional dependencies installed. The deb artifact built with it seems to work. |
There is no need to install Node.js. pnpm is built into an executable together with Node.js. So just pnpm needs to be installed, and it will work even if there is no Node.js installed on the target system. |
I think for now it will be easier to use a standalone shell script to install pnpm (I already worked on it here). And in the future we may add support for different system package managers, if needed. |
pnpm author wants to use binary edition of pnpm for package managers pnpm/pnpm#3633
@zkochan I'm working on the pnpm Homebrew formula. Please help me. |
I can look into the PR later. If you have some specific questions, feel free to ask here or in the chatroom. Regarding shipping pnpm binaries as independent executables, the plan is to ship them by default from pnpm v7. If you want to use the binaries for brew, they are uploaded already to the release page: https://github.com/pnpm/pnpm/releases/tag/v6.12.1 I think I can add binaries for arm architecture as well. |
@zkochan Thanks for your kind responce!
Homebrew will never allow the prebuilt binaries for OSS. The binaries must be built from the Homebrew's definitions (formulae) and from their sources. |
Is MacPorts going to be supported as well? |
We will accept contributions that add support for any package managers and/or systems. But for now I want to concentrate on creating a cross-platform shell script for installing pnpm on any system. As I mentioned above, I already have one in progress: https://github.com/pnpm/get/blob/main/beta-install.sh However, we started to use the XDG desktop standard, so finding the right location is a bit hard. I think I will use the following steps to install pnpm using the standalone script:
|
@zkochan Will the preferred global bin be changed from writable |
Shellcheck will help you very much. pnpm/get.pnpm.io#3 |
The XDG standard is for Linux. What should be the preferred home direrory location for pnpm on macOS? |
I suggest |
Im patiently waiting for this to be complete! (fingers crossed) as I would prefer to get the pnpm cli fully compatible with alpine and able to use I am currenlty resorting to nodejs-current apack in my repo :( |
We already ship all the necessary assets. I don't have experience with any of these system package managers but it shouldn't be hard to add support for them as the assets are present |
@zkochan i've resorted to installing the pnpm cli separately from the nodejs binary (using the one available in alpine contributing repo) but i do plan on addressing this later as i use pnpm env to manage my entire node setup when on baremetal and its fkn awesome |
@zkochan I think we should have our own repository dedicated to the latest pnpm binary. _人人人人人_ This is why Docker and Yarn have their own repository. Building the repository would be hard but once it establishes users can use it easily because there is plenty of third-party repositories and tools to register such repositories. |
I don't have objections |
I will investigate how we can have our own repository in Debian and Ubuntu. We would need some hosting. |
we have a hosting on netlify |
How much bandwidth do we have? |
400 GB / mo might not be enough for production but we can try. |
Can we have S3-compatible cloud storage or AWS S3 as a backend of Netlify or CloudFlare? |
can't we just commit to a git repo? |
That cannot (I know this is technically possible but would go very messy) be automated and the size of the git repo grows rapidly. |
Well, we should use a free solution if possible. S3 is not free and I would be afraid to use my card. |
Many big distros provide a way to host a custom repository. Ubuntu has PPAs, Fedora has Copr, etc. I'm guessing we could benefit from them. |
From searching around, you may be able to use GitHub Pages for this, for free. I found a guide that might help. The same concept likely applies for Cloudflare Pages, Netlify, etc. |
@zkochan your wrong here you can make it easy if you like https://snapcraft.io/ and https://appimage.org/ |
If you host in a GitHub repo, you could amend the first commit every time, so the repo size stays completely under control, and will only ever have 1 commit. |
Might be worth to investigate https://build.opensuse.org/ which lets you build for many linux distributions. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Would like to mention (a bit late) that I believe there are programs that follow the XDG standard on macos too |
Related: #3624
For inspiration:
The text was updated successfully, but these errors were encountered: