Thursday, 1 June 2017

install a node js package from tar

I have created a tar file from my entire package directory including the package file and try to use the command-

npm install package.tar

from my projects folder where the tar file is, however I am getting an error that says

ENOENT: no such file or directory, open 'C:\Projects\package.json'

if i try to put the package.son file in projects folder, I get

Refusing to install package as a dependency of itself

how exactly do i install a package from a tar file?



via GarudaAiacos

No comments:

Post a Comment