Skip to content
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

Support volta installing a tarball #427

Closed
rwjblue opened this issue May 13, 2019 · 3 comments · Fixed by #854
Closed

Support volta installing a tarball #427

rwjblue opened this issue May 13, 2019 · 3 comments · Fixed by #854

Comments

@rwjblue
Copy link
Contributor

rwjblue commented May 13, 2019

There are times (like when you want to test a prebuilt npm pack result) that you need to install a global package but not from the registry.

Without notion you would do npm install --global ./path/to/tarball.tgz, but notion intercepts the --global invocation errors with:

Notion error: Global package installs are not recommended

Since we are ultimately using npm install to do the heavy lifting here anyways, and npm supports:

npm install --global package-name@./some/path/to/tarball.tgz

We should be able to make something like this work (based on the work in #383):

notion install ember-cli@./ember-cli-3.10.0.tgz

However, at the moment ^ causes the following error:

error: Could not parse version "ember-cli-3.10.0.tgz"

Reported by @Turbo87 in discord

@rwjblue rwjblue changed the title Support globally installing from a tarball Support notion installing a tarball May 13, 2019
@chriskrycho chriskrycho changed the title Support notion installing a tarball Support volta installing a tarball May 15, 2019
@dherman
Copy link
Collaborator

dherman commented Jun 9, 2020

@DanielRosenwasser reached out to me today with an interest in this. They have a GitHub bot that packs PRs into tarballs on demand (example), and they'd love to be able to use that in CI with Volta.

@charlespierce
Copy link
Contributor

As of Volta 0.9.0, we now support using the package managers directly to install packages. We don't currently support the specific syntax volta install /path/to/tarball.tgz, but we do support npm i -g /path/to/tarball.tgz to perform the same task.

@DanielRosenwasser
Copy link

Perfect, thank you very much!

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

Successfully merging a pull request may close this issue.

5 participants