Volta: Support `volta install`ing a tarball

Created on 13 May 2019  路  3Comments  路  Source: volta-cli/volta

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 https://github.com/notion-cli/notion/pull/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

enhancement

Most helpful comment

@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.

All 3 comments

@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.

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.

Perfect, thank you very much!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stefanpenner picture stefanpenner  路  6Comments

pjking07 picture pjking07  路  5Comments

dherman picture dherman  路  5Comments

mikrostew picture mikrostew  路  5Comments

felipecrs picture felipecrs  路  5Comments