7

I would like to know how can I run nodeJS express from usb drive on a Linux/gentoo configuration ?

Alexander Farber
  • 21,519
  • 75
  • 241
  • 416
user3379947
  • 87
  • 1
  • 1
  • 2

2 Answers2

10

The only requirement is to download a portable version of node.js, may need to tweak mounting permissions.

The distributables are located here.

All your modules need to be installed locally.

danilodeveloper
  • 3,840
  • 2
  • 36
  • 56
  • 9
    Specifically, per a [comment](https://github.com/joyent/node/issues/3978#issuecomment-8391612) on their issue tracker, Mithgol says, "if you need just a portable Node.js engine, you could simply grab http://nodejs.org/dist/latest/node.exe and save it somewhere and run it whenever you want a JavaScript file executed" – CrazyPyro Jan 21 '15 at 14:14
  • 3
    "[...] and if you also need npm, you have to download npm's latest ZIP from http://nodejs.org/dist/npm/ and unpack it to the same subdirectory where your Node is." – CrazyPyro Jan 21 '15 at 14:20
  • 2
    Just for complete answer for future readers. Nodejs, express, and any other module can run via NW.js (node-webkit in past) as a portable self-contained app where your javascript executed by V8 runtime with starting node server on localhost and Chrome is a client portable browser (you can avoid runing Chrome for your needs). More info available at http://docs.nwjs.io/en/latest/ – northernwind Mar 28 '17 at 15:03
3

You can download NodeJs Portable on sourceforge here : NodeJS Portable : http://sourceforge.net/projects/nodejsportable/files/latest/download

Voyageur2000
  • 269
  • 3
  • 13