Reputation: 2074
I'm trying to install npmbox
on an offline machine running windows
server.
According to the docs, after creating npmbox.npmbox
on an online machine, I have to move to the offline one, copy the file, and run tar -xvfo npmbox.npmbox
.
I can't use the -o
option, so If I remove it I can move on.
Afterwards, running tar -xvf npmbox.npmbox
I run
npm install --global --cache ./.npmbox-cache --optional --no-registry --fetch-retries 0 --fetch-retry-factor 0 --fetch-retry-mintimeout 1 --fetch-retry-maxtimeout 2 npmbox
And this error pops.
TypeError: Parameter 'url' must be a string, not object
Any ideas? Thanks
Upvotes: 1
Views: 3026
Reputation: 2074
Here's the issue that helped me solve my problem.
Just change --no-registry
with --cache-min 999999
and that should install from cache straight forward.
Upvotes: 2