Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I run nodejs from usb drive?

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

like image 585
user3379947 Avatar asked Jun 16 '14 15:06

user3379947


People also ask

CAN node js be portable?

the issues here is, having nodejs portable. it's not recommended at all, it's your runtime environment part. however, if you trying to use portable vscode, it will works just fine, it is the same as, you are using any other portable text editor, such as notepad++.

How do I run node js files locally?

You can Run your JavaScript File from your Terminal only if you have installed NodeJs runtime. If you have Installed it then Simply open the terminal and type “node FileName. js”. If you don't have NodeJs runtime environment then go to NodeJs Runtime Environment Download and Download it.

Can I install node js in D drive?

You can move the node.exe to the d drive. Then check your environment path. Type set in a command window or in computer properties. Make sure you have the folder that contains node.exe in your path.


Video Answer


2 Answers

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.

like image 116
danilodeveloper Avatar answered Sep 21 '22 16:09

danilodeveloper


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

like image 20
Matt Avatar answered Sep 20 '22 16:09

Matt