I have an offline environment, without internet access. I am installing my node.js dependencies through npmbox.
I had a problen unboxing ejs
[root@SDProv utumiki]# npmunbox ejs.npmbox
Unboxing ejs.npmbox...
Unpacking ejs.npmbox...
Installing ejs...
An error occurred while installing ejs.
ejs was not installed.
Done.
{ Error: getaddrinfo EAI_AGAIN registry.npmjs.org:443
at Object.exports._errnoException (util.js:1018:11)
at errnoException (dns.js:33:15)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)
code: 'EAI_AGAIN',
errno: 'EAI_AGAIN',
syscall: 'getaddrinfo',
hostname: 'registry.npmjs.org',
host: 'registry.npmjs.org',
port: 443,
parent: 'utumiki' }
I don't understand why it is trying to connect to anywhere if I am installing it in offline mode.
EDIT: If I install it globaly by "npmunbox -g ejs", it works. But I don't want to install it globaly.
via leader
No comments:
Post a Comment