- Create folder D:/jsbin
- Goto https://nodejs.org/en/download/
- Download Windows Binary (.exe)
- Move
node.exe
to/jsbin
- Goto https://github.com/npm/npm/releases/latest
- Download Source code (zip)
- Extract zip to
/jsbin
(in this case, my NPM extracted folder is: /npm-3.10.8)
- Create batch-file inside
/jsbin
with namenpm.cmd
ornpm.bat
copas (copy-paste) this to npm batch file:
@echo off
node "%~dp0npm-3.10.8\bin\npm-cli.js" %*
- Add D:/jsbin to Windows env-path (howto)
Open Windows command-prompt (close first, if u already open one).
test node:
node --version
test npm:
npm --version
[sorry for my bad english]
my blog post [id]: http://ne-a-r.blogspot.com/2016/10/cara-install-nodejs-dan-npmjs.html