This is a completely portable setup for node, npm, git, and a nice console emulator for Windows.
- download node (binary) - https://nodejs.org/en/download/
- copy to
%USERPROFILE%/Application/node/
- download npm - https://github.com/npm/npm/releases
- unzip to
%USERPROFILE%/Application/node/node_modules/npm/
- copy
npm
andnpm.cmd
from%USERPROFILE%/Application/node/node_modules/npm/bin/
to%USERPROFILE%/Application/node/
- download git - https://github.com/git-for-windows/git/releases
- unzip to
%USERPROFILE%/Application/git/
- download cmder mini - http://cmder.net/
- unzip to
%USERPROFILE%/Application/cmder/
- downlod atom editor - https://github.com/atom/atom/releases (atom-windows.zip)
- unzip to
%USERPROFILE%/Application/Atom/
- create a new startup tasks in cmder for git sh - https://www.awmoore.com/2015/01/14/setting-up-git-and-cmder/
Task name: git bash
Task parameters: /icon "%USERPROFILE%/Application/git/etc/git.ico"
Task contents: "%USERPROFILE%/Application/git/bin/sh.exe" --login -i" -new_console:d:%USERPROFILE%
- Add paths to portable binaries to cmder environment.
# set app path
set APP_PATH=%USERPROFILE%/Applications
# set apm bin
set PATH=%APP_PATH%/Atom/resources/app/apm/bin;%PATH%
# set node path
set PATH=%APP_PATH%/node;%PATH%
# add local node path
set PATH=./node_modules/.bin;%PATH%
NOTE: There's bugs in the portable version so not stable yet such as file/folder permissions.
Create a cmd to launch portable Atom %USERPROFILE/Application/Atom/atom-portable.cmd
by specifying ATOM_HOME
. (atom/atom#10072)
@echo off
set ATOM_HOME=%~dp0/.atom
start atom.exe %*
Add a taskbar shortcut (Optional): Right-click and drag the atom.exe
to the taskbar. Then right-click the new shortcut > Properties and change the target location to atom-portable.cmd
. You can change the icon by right-clicking the new shortcut > Properties > Change Icon > (select Atom.exe
as the icon)