Hi,
I have been for a few days to install log.io using NPM on several systems
that have no access to the internet at all. I used a system with internet
access to obtain the following binaries:
- node
- npm
I then downloaded the latest version of *npmbox *from github in order to
package some apps for my offline systems:
- npmbox => v 2.3.0
I obtained the above binaries from nodejs.org. The system with internet
access is OS X. On my OS X system, I have the following versions:
- node => v 4.3.2
- npm => v 2.14.12
I proceeded by downloading *node 4.3.2 *from nodejs.org for Linux since my
offline systems are RHEL 6. I untarred the Linux binary on my offline
systems and I am able to see and use *node *and *npm*. The next step was to
go back to my online system, which is my OS X laptop, and then run the
following to package two apps:
- npmbox {npmbox [email protected]}
- I installed version 1.0.0 because I read that there are issues with
the later version still trying to go to the net to download packages. So
this is the version I placed on the servers while v 2.3.0 is what I use
on
OS X
- log.io {npmbox log.io}
I was left with two packages files:
- npmbox.npmbox
- log.io.npmbox
I copied both files to my offline servers and successfully ran the install
of npmbox.npmbox in this manner:
npm install --verbose --global --cache ./.npmbox.cache --optional --cache-min
99999 --shrinkwrap false [email protected]
I also tried it without *--shrinkwrap false:*
npm install --verbose --global --cache ./.npmbox.cache --optional --cache-min
99999 [email protected]
Now, when I try to run *npmunbox *for *log.io.npmbox*, it fails because it
is still trying to go out to the net. I ran *npm cache clean* to see if
that would fix the issue but it still fails because it attempts to go out
to the net to install log.io. Here is how I ran it and the issue I get back:
server> npmunbox -v -g log.io.npmbox --user "root"
Extracting archive log.io...
npm WARN deprecated This version of npm lacks support for important
features,
npm WARN deprecated such as scoped packages, offered by the primary npm
npm WARN deprecated registry. Consider upgrading to at least npm@2, if not
the
npm WARN deprecated latest stable version. To upgrade to npm@2, run:
npm WARN deprecated
npm WARN deprecated npm -g install npm@latest-2
npm WARN deprecated
npm WARN deprecated To upgrade to the latest stable version, run:
npm WARN deprecated
npm WARN deprecated npm -g install npm@latest
npm WARN deprecated
npm WARN deprecated (Depending on how Node.js was installed on your system,
you
npm WARN deprecated may need to prefix the preceding commands with `sudo`,
or if
npm WARN deprecated on Windows, run them from an Administrator prompt.)
npm WARN deprecated
npm WARN deprecated If you're running the version of npm bundled with
npm WARN deprecated Node.js 0.10 LTS, be aware that the next version of
0.10 LTS
npm WARN deprecated will be bundled with a version of npm@2, which has some
small
npm WARN deprecated backwards-incompatible changes made to `npm run-script`
and
npm WARN deprecated semver behavior.
Installing log.io...
npm http GET https://registry.npmjs.org/log.io
npm http GET https://registry.npmjs.org/log.io
npm http GET https://registry.npmjs.org/log.io
/
Cleaning Up...
npmunbox had the following errors...
Unable to install log.io.npmbox from log.io
I am running the following versions on the offline servers:
- node => v4.3.2
- npm => v2.14.2
- npmbox => 1.0.0
I still can't figure out why it keeps attempting to go out to the internet
instead of using the package I am specifying. What am I missing here?
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/315ab07c-8466-412a-8192-6d9e4250cade%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.