{"id":837,"date":"2017-05-05T12:46:57","date_gmt":"2017-05-05T07:16:57","guid":{"rendered":"https:\/\/blog.binarybits.net\/?p=837"},"modified":"2021-05-03T16:20:10","modified_gmt":"2021-05-03T10:50:10","slug":"setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy","status":"publish","type":"post","link":"https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/","title":{"rendered":"Setting up Node.js & NPM on a machine without administrative privileges and behind a corporate proxy"},"content":{"rendered":"
Recently I was trying to setup a development machine at our office and realized few issues.<\/p>\n
So how to proceed? Following is what I did.<\/p>\n
[Update:\u00a0<\/strong>Now node.js<\/em> includes npm<\/em>, so I would suggest to download only node<\/em>.]<\/strong><\/p>\n Node.js binary\u00a0(32bit or 64 bit):\u00a0https:\/\/nodejs.org\/en\/download\/<\/a><\/p><\/blockquote>\n Every time the development environment is booted do the following<\/p>\n If you get version numbers for both then both are working.<\/p>\n Now the environment is set up. You can set up the “path” variable without administrator privileges in Windows by doing the following.<\/p>\n Source URLs: Recently I was trying to setup a development machine at our office and realized few issues. The machine didn’t have administrative privileges It was located behind the corporate proxy It uses Windows 10 as primary OS So how to proceed? Following is what I did. [Update:\u00a0Now node.js includes npm, so I would suggest to download […]<\/p>\n","protected":false},"author":1,"featured_media":839,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[9],"tags":[242,240,241],"yoast_head":"\nDownloading Node.js & NPM<\/h3>\n
\n
\n
Download NPM binary release from the url below<\/del><\/li>\n<\/ol>\nNPM Release:\u00a0https:\/\/github.com\/npm\/npm\/releases<\/a><\/del><\/p><\/blockquote>\n\n
Extract NPM to D:\\Development\\NPM<\/del><\/li>\n<\/ol>\nSet up environment<\/h3>\n
\n
set PATH=%PATH%;D:\\Development\\Node;D:\\Development\\Node\\node_modules\\npm\\bin;<\/pre>\n
\n
node -v<\/pre>\n
\n
npm -v<\/pre>\n
\n
set http_proxy=http:\/\/replace-with-your-organization-proxy-url:optional-port-number\r\nset https_proxy=https:\/\/replace-with-your-organization-proxy-url:optional-port-number\r\nnpm config set strict-ssl false\r\nnpm config set proxy http:\/\/replace-with-your-organization-proxy-url:optional-port-number\r\nnpm config set https-proxy https:\/\/replace-with-your-organization-proxy-url:optional-port-number<\/pre>\n
\nDo remember, once the console is closed, all the above settings are lost and needs to be run again, just follow the section “Set up environment” again or do the following.<\/em><\/p>\n\n
\nhttp:\/\/abdelraoof.com\/blog\/2014\/11\/11\/install-nodejs-without-admin-rights<\/a>
\nhttp:\/\/www.kscodes.com\/misc\/how-to-set-path-in-windows-without-admin-rights\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"