<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Node.js Archives : Binary Bits</title>
	<atom:link href="https://blog.binarybits.net/tag/node-js/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.binarybits.net/tag/node-js/</link>
	<description>Bits &#38; Pieces - A blog by Kannan Balasubramanian</description>
	<lastBuildDate>Mon, 03 May 2021 10:50:10 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Setting up Node.js &#038; NPM on a machine without administrative privileges and behind a corporate proxy</title>
		<link>https://blog.binarybits.net/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy/</link>
					<comments>https://blog.binarybits.net/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy/#respond</comments>
		
		<dc:creator><![CDATA[Kannan]]></dc:creator>
		<pubDate>Fri, 05 May 2017 07:16:57 +0000</pubDate>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[corporate proxy]]></category>
		<category><![CDATA[Node.js]]></category>
		<category><![CDATA[npm]]></category>
		<guid isPermaLink="false">https://blog.binarybits.net/?p=837</guid>

					<description><![CDATA[<p>Recently I was trying to setup a development machine at our office and realized few issues. The machine didn&#8217;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: Now node.js includes npm, so I would suggest to download [&#8230;]</p>
<p>The post <a href="https://blog.binarybits.net/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy/">Setting up Node.js &#038; NPM on a machine without administrative privileges and behind a corporate proxy</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Recently I was trying to setup a development machine at our office and realized few issues.</p>
<ol>
<li>The machine didn&#8217;t have administrative privileges</li>
<li>It was located behind the corporate proxy</li>
<li>It uses Windows 10 as primary OS</li>
</ol>
<p>So how to proceed? Following is what I did.</p>
<p><strong>[Update: </strong>Now <em>node.js</em> includes <em>npm</em>, so I would suggest to download only <em>node</em>.<strong>]</strong></p>
<h3>Downloading Node.js &amp; NPM</h3>
<ol>
<li>Download the Node.js binary instead of installer from the below URLs</li>
</ol>
<blockquote><p>Node.js binary (32bit or 64 bit): <a href="https://nodejs.org/en/download/" target="_blank" rel="noopener noreferrer">https://nodejs.org/en/download/</a></p></blockquote>
<ol start="2">
<li><del>Download NPM binary release from the url below</del></li>
</ol>
<blockquote><p><del>NPM Release: <a href="https://github.com/npm/npm/releases" target="_blank" rel="noopener noreferrer">https://github.com/npm/npm/releases</a></del></p></blockquote>
<ol start="3">
<li>Extract Node.js to D:\Development\Node</li>
<li><del>Extract NPM to D:\Development\NPM</del></li>
</ol>
<h3>Set up environment</h3>
<p>Every time the development environment is booted do the following</p>
<ol>
<li>Start a command prompt and set the following path</li>
</ol>
<pre class="wrap:true lang:batch decode:true">set PATH=%PATH%;D:\Development\Node;D:\Development\Node\node_modules\npm\bin;</pre>
<ol start="2">
<li>Check the Node version by typing the following</li>
</ol>
<pre class="wrap:true lang:batch decode:true ">node -v</pre>
<ol start="3">
<li>Check the NPM version by typing the following</li>
</ol>
<pre class="wrap:true lang:batch decode:true ">npm -v</pre>
<p>If you get version numbers for both then both are working.</p>
<ol start="4">
<li>Now set proxy so that NPM can download modules by running the following</li>
</ol>
<pre class="wrap:true lang:batch decode:true ">set http_proxy=http://replace-with-your-organization-proxy-url:optional-port-number
set https_proxy=https://replace-with-your-organization-proxy-url:optional-port-number
npm config set strict-ssl false
npm config set proxy http://replace-with-your-organization-proxy-url:optional-port-number
npm config set https-proxy https://replace-with-your-organization-proxy-url:optional-port-number</pre>
<p>Now the environment is set up.<br />
<em>Do remember, once the console is closed, all the above settings are lost and needs to be run again, just follow the section &#8220;Set up environment&#8221; again or do the following.</em></p>
<p>You can set up the &#8220;path&#8221; variable without administrator privileges in Windows by doing the following.</p>
<ol>
<li>From Windows&#8217;s Start Menu, open Control Panel.</li>
<li>In Control Panel open &#8220;User Accounts&#8221;.</li>
<li>In &#8216;User Accounts&#8221; open &#8220;Change my environment variables&#8221;.</li>
<li>This will open the user&#8217;s &#8220;Environment Variables&#8221; window.</li>
<li>Select the row with entry &#8220;Path&#8221;.</li>
<li>Click &#8220;Edit&#8221; button.</li>
<li>In the &#8220;Variable value:&#8221; text box, append the path of your executable location, which in this case is &#8220;<em>D:\Development\Node;D:\Development\Node\node_modules\npm\bin;</em>&#8220;</li>
<li>Click OK</li>
<li>Open a new terminal or console</li>
<li>Type &#8220;<em>node -v</em>&#8221; to check if node is working fine.</li>
<li>type &#8220;<em>npm -v</em>&#8221; to check if npm is working fine.</li>
</ol>
<p>Source URLs:<br />
<a href="http://abdelraoof.com/blog/2014/11/11/install-nodejs-without-admin-rights" target="_blank" rel="noopener noreferrer">http://abdelraoof.com/blog/2014/11/11/install-nodejs-without-admin-rights</a><br />
<a href="http://www.kscodes.com/misc/how-to-set-path-in-windows-without-admin-rights/" target="_blank" rel="noopener noreferrer">http://www.kscodes.com/misc/how-to-set-path-in-windows-without-admin-rights/</a></p>
<p>The post <a href="https://blog.binarybits.net/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy/">Setting up Node.js &#038; NPM on a machine without administrative privileges and behind a corporate proxy</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.binarybits.net/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Minified using Disk

Served from: blog.binarybits.net @ 2026-04-23 06:38:26 by W3 Total Cache
-->