Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to unpack after npm pack?

Tags:

node.js

npm

You have a npm package that was packed into a tgz tarball.

This, apparently, is done with npm pack.

However, how can you unpack it? There's no such thing as npm unpack.

like image 761
Adelin Avatar asked Apr 11 '18 06:04

Adelin


1 Answers

This can be done with npm install tgz_file.tgz --production command.

It will install that package, along with all of its dependencies, in the path relative to where the command was ran from.

like image 166
Adelin Avatar answered Sep 22 '22 17:09

Adelin