Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to install package from git repository from downloaded .zip file in npm?

Tags:

npm

I've downloaded manually master branch of repository via Download ZIP button on GitHub. Now, my question is:

Is it possible to install package from git repository from downloaded .zip file in npm?

Running:

$ npm install ~/Pobrane/lwip-master.zip

Failed:

npm ERR! not a package /home/name/Pobrane/lwip-master.zip
npm ERR! addLocal Could not install /home/name/Pobrane/lwip-master.zip
npm ERR! Linux 4.2.0-11-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "/home/name/Pobrane/lwip-master.zip"
npm ERR! node v4.0.0
npm ERR! npm  v3.3.4
npm ERR! path /tmp/npm-4968-42fe38a2/unpack-56722f88bedcd792268b060f241bf5f9/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open '/tmp/npm-4968-42fe38a2/unpack-56722f88bedcd792268b060f241bf5f9/package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! Please include the following file with any support request:
npm ERR!     /home/name/Projects/api/npm-debug.log
like image 792
Daniel Kmak Avatar asked Feb 09 '23 22:02

Daniel Kmak


1 Answers

Try this :

npm install ./package.zip

Reference: https://docs.npmjs.com/cli/install

like image 117
Pat B Avatar answered Feb 11 '23 10:02

Pat B