{"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

    \n
  1. The machine didn’t have administrative privileges<\/li>\n
  2. It was located behind the corporate proxy<\/li>\n
  3. It uses Windows 10 as primary OS<\/li>\n<\/ol>\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

    Downloading Node.js & NPM<\/h3>\n
      \n
    1. Download the Node.js binary instead of installer from the below URLs<\/li>\n<\/ol>\n

      Node.js binary\u00a0(32bit or 64 bit):\u00a0https:\/\/nodejs.org\/en\/download\/<\/a><\/p><\/blockquote>\n

        \n
      1. Download NPM binary release from the url below<\/del><\/li>\n<\/ol>\n

        NPM Release:\u00a0https:\/\/github.com\/npm\/npm\/releases<\/a><\/del><\/p><\/blockquote>\n

          \n
        1. Extract Node.js to D:\\Development\\Node<\/li>\n
        2. Extract NPM to D:\\Development\\NPM<\/del><\/li>\n<\/ol>\n

          Set up environment<\/h3>\n

          Every time the development environment is booted do the following<\/p>\n

            \n
          1. Start a command prompt and set the following path<\/li>\n<\/ol>\n
            set PATH=%PATH%;D:\\Development\\Node;D:\\Development\\Node\\node_modules\\npm\\bin;<\/pre>\n
              \n
            1. Check the Node version by typing the following<\/li>\n<\/ol>\n
              node -v<\/pre>\n
                \n
              1. Check the NPM version by typing the following<\/li>\n<\/ol>\n
                npm -v<\/pre>\n

                If you get version numbers for both then both are working.<\/p>\n

                  \n
                1. Now set proxy so that NPM can download modules by running the following<\/li>\n<\/ol>\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

                  Now the environment is set up.
                  \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

                  You can set up the “path” variable without administrator privileges in Windows by doing the following.<\/p>\n

                    \n
                  1. From Windows’s Start Menu, open Control Panel.<\/li>\n
                  2. In Control Panel open “User Accounts”.<\/li>\n
                  3. In ‘User Accounts” open “Change my environment variables”.<\/li>\n
                  4. This will open the user’s “Environment Variables” window.<\/li>\n
                  5. Select the row with entry “Path”.<\/li>\n
                  6. Click “Edit” button.<\/li>\n
                  7. In the “Variable value:” text box, append the path of your executable location, which in this case is “D:\\Development\\Node;D:\\Development\\Node\\node_modules\\npm\\bin;<\/em>“<\/li>\n
                  8. Click OK<\/li>\n
                  9. Open a new terminal or console<\/li>\n
                  10. Type “node -v<\/em>” to check if node is working fine.<\/li>\n
                  11. type “npm -v<\/em>” to check if npm is working fine.<\/li>\n<\/ol>\n

                    Source URLs:
                    \nhttp:\/\/abdelraoof.com\/blog\/2014\/11\/11\/install-nodejs-without-admin-rights<\/a>
                    \n
                    http:\/\/www.kscodes.com\/misc\/how-to-set-path-in-windows-without-admin-rights\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

                    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":"\nSetting up Node.js & NPM on a machine without administrative privileges and behind a corporate proxy : Binary Bits<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Setting up Node.js & NPM on a machine without administrative privileges and behind a corporate proxy : Binary Bits\" \/>\n<meta property=\"og:description\" content=\"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 […]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/\" \/>\n<meta property=\"og:site_name\" content=\"Binary Bits\" \/>\n<meta property=\"article:published_time\" content=\"2017-05-05T07:16:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-03T10:50:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blog.binarybits.net\/wp-content\/uploads\/2017\/05\/Script-Small.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t<meta property=\"og:image:height\" content=\"233\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Kannan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Kannan_B\" \/>\n<meta name=\"twitter:site\" content=\"@Kannan_B\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kannan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/\"},\"author\":{\"name\":\"Kannan\",\"@id\":\"https:\/\/blog.binarybits.net\/#\/schema\/person\/dda0e26212583a95f286cf67604fd855\"},\"headline\":\"Setting up Node.js & NPM on a machine without administrative privileges and behind a corporate proxy\",\"datePublished\":\"2017-05-05T07:16:57+00:00\",\"dateModified\":\"2021-05-03T10:50:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/\"},\"wordCount\":353,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/blog.binarybits.net\/#\/schema\/person\/dda0e26212583a95f286cf67604fd855\"},\"image\":{\"@id\":\"https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/blog.binarybits.net\/wp-content\/uploads\/2017\/05\/Script-Small.jpg\",\"keywords\":[\"corporate proxy\",\"Node.js\",\"npm\"],\"articleSection\":[\"Web\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/\",\"url\":\"https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/\",\"name\":\"Setting up Node.js & NPM on a machine without administrative privileges and behind a corporate proxy : Binary Bits\",\"isPartOf\":{\"@id\":\"https:\/\/blog.binarybits.net\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/blog.binarybits.net\/wp-content\/uploads\/2017\/05\/Script-Small.jpg\",\"datePublished\":\"2017-05-05T07:16:57+00:00\",\"dateModified\":\"2021-05-03T10:50:10+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/#primaryimage\",\"url\":\"https:\/\/blog.binarybits.net\/wp-content\/uploads\/2017\/05\/Script-Small.jpg\",\"contentUrl\":\"https:\/\/blog.binarybits.net\/wp-content\/uploads\/2017\/05\/Script-Small.jpg\",\"width\":350,\"height\":233},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/blog.binarybits.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Setting up Node.js & NPM on a machine without administrative privileges and behind a corporate proxy\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.binarybits.net\/#website\",\"url\":\"https:\/\/blog.binarybits.net\/\",\"name\":\"Binary Bits\",\"description\":\"Bits & Pieces - A blog by Kannan Balasubramanian\",\"publisher\":{\"@id\":\"https:\/\/blog.binarybits.net\/#\/schema\/person\/dda0e26212583a95f286cf67604fd855\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.binarybits.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/blog.binarybits.net\/#\/schema\/person\/dda0e26212583a95f286cf67604fd855\",\"name\":\"Kannan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/blog.binarybits.net\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/blog.binarybits.net\/wp-content\/uploads\/2017\/04\/12976869_10207528235497646_1307827709790943986_o.jpg\",\"contentUrl\":\"https:\/\/blog.binarybits.net\/wp-content\/uploads\/2017\/04\/12976869_10207528235497646_1307827709790943986_o.jpg\",\"width\":1270,\"height\":1270,\"caption\":\"Kannan\"},\"logo\":{\"@id\":\"https:\/\/blog.binarybits.net\/#\/schema\/person\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Setting up Node.js & NPM on a machine without administrative privileges and behind a corporate proxy : Binary Bits","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/","og_locale":"en_GB","og_type":"article","og_title":"Setting up Node.js & NPM on a machine without administrative privileges and behind a corporate proxy : Binary Bits","og_description":"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 […]","og_url":"https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/","og_site_name":"Binary Bits","article_published_time":"2017-05-05T07:16:57+00:00","article_modified_time":"2021-05-03T10:50:10+00:00","og_image":[{"width":350,"height":233,"url":"https:\/\/blog.binarybits.net\/wp-content\/uploads\/2017\/05\/Script-Small.jpg","type":"image\/jpeg"}],"author":"Kannan","twitter_card":"summary_large_image","twitter_creator":"@Kannan_B","twitter_site":"@Kannan_B","twitter_misc":{"Written by":"Kannan","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/#article","isPartOf":{"@id":"https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/"},"author":{"name":"Kannan","@id":"https:\/\/blog.binarybits.net\/#\/schema\/person\/dda0e26212583a95f286cf67604fd855"},"headline":"Setting up Node.js & NPM on a machine without administrative privileges and behind a corporate proxy","datePublished":"2017-05-05T07:16:57+00:00","dateModified":"2021-05-03T10:50:10+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/"},"wordCount":353,"commentCount":0,"publisher":{"@id":"https:\/\/blog.binarybits.net\/#\/schema\/person\/dda0e26212583a95f286cf67604fd855"},"image":{"@id":"https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.binarybits.net\/wp-content\/uploads\/2017\/05\/Script-Small.jpg","keywords":["corporate proxy","Node.js","npm"],"articleSection":["Web"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/","url":"https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/","name":"Setting up Node.js & NPM on a machine without administrative privileges and behind a corporate proxy : Binary Bits","isPartOf":{"@id":"https:\/\/blog.binarybits.net\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/#primaryimage"},"image":{"@id":"https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.binarybits.net\/wp-content\/uploads\/2017\/05\/Script-Small.jpg","datePublished":"2017-05-05T07:16:57+00:00","dateModified":"2021-05-03T10:50:10+00:00","breadcrumb":{"@id":"https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/#primaryimage","url":"https:\/\/blog.binarybits.net\/wp-content\/uploads\/2017\/05\/Script-Small.jpg","contentUrl":"https:\/\/blog.binarybits.net\/wp-content\/uploads\/2017\/05\/Script-Small.jpg","width":350,"height":233},{"@type":"BreadcrumbList","@id":"https:\/\/blog.binarybits.net\/setting-up-node-js-npm-on-a-machine-without-administrative-privileges-and-behind-a-corporate-proxy\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.binarybits.net\/"},{"@type":"ListItem","position":2,"name":"Setting up Node.js & NPM on a machine without administrative privileges and behind a corporate proxy"}]},{"@type":"WebSite","@id":"https:\/\/blog.binarybits.net\/#website","url":"https:\/\/blog.binarybits.net\/","name":"Binary Bits","description":"Bits & Pieces - A blog by Kannan Balasubramanian","publisher":{"@id":"https:\/\/blog.binarybits.net\/#\/schema\/person\/dda0e26212583a95f286cf67604fd855"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.binarybits.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":["Person","Organization"],"@id":"https:\/\/blog.binarybits.net\/#\/schema\/person\/dda0e26212583a95f286cf67604fd855","name":"Kannan","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/blog.binarybits.net\/#\/schema\/person\/image\/","url":"https:\/\/blog.binarybits.net\/wp-content\/uploads\/2017\/04\/12976869_10207528235497646_1307827709790943986_o.jpg","contentUrl":"https:\/\/blog.binarybits.net\/wp-content\/uploads\/2017\/04\/12976869_10207528235497646_1307827709790943986_o.jpg","width":1270,"height":1270,"caption":"Kannan"},"logo":{"@id":"https:\/\/blog.binarybits.net\/#\/schema\/person\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/blog.binarybits.net\/wp-json\/wp\/v2\/posts\/837"}],"collection":[{"href":"https:\/\/blog.binarybits.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.binarybits.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.binarybits.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.binarybits.net\/wp-json\/wp\/v2\/comments?post=837"}],"version-history":[{"count":12,"href":"https:\/\/blog.binarybits.net\/wp-json\/wp\/v2\/posts\/837\/revisions"}],"predecessor-version":[{"id":941,"href":"https:\/\/blog.binarybits.net\/wp-json\/wp\/v2\/posts\/837\/revisions\/941"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.binarybits.net\/wp-json\/wp\/v2\/media\/839"}],"wp:attachment":[{"href":"https:\/\/blog.binarybits.net\/wp-json\/wp\/v2\/media?parent=837"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.binarybits.net\/wp-json\/wp\/v2\/categories?post=837"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.binarybits.net\/wp-json\/wp\/v2\/tags?post=837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}