Install Node.js/NPM/Bowr on windows[permission]


Downloading


Access Node.JS website by clicking on https://nodejs.org/  node


Choose a proper version required by your project (Stable or LTS).git

LTSgithub

Mature and Dependableweb

Stableshell

Latest Featuresnpm

https://nodejs.org/en/download/ https://nodejs.org/en/download/stable/

click on "Windows Binary (.exe)" 32bit or 64bit based on your operating system.
windows


Configuration


On windows create a folder on drive C:\ and name it "nodejs".ide


Copy  node.exe to "nodejs" folder.oop


inside "nodejs" create "node_modules" folder and then create "npm" folder inside "node_modules"ui


the folder tree should look like this:


 

Download the latest npm repository from  https://github.com/npm/npm/archive/master.zip  and extract it to C:\nodejs\node_modules\npm.

 


Copy the npm and npm.cmd from C:\nodejs\node_modules\npm\bin to C:\nodejs


Copy from bin

Paste to nodejs

Finally the "nodejs" folder should contain the following files:



Proxy setting


Type the following commands in terminal:


Set proxy

npm config set proxy http://username:password@server:port
npm config set https-proxy https://username:password@server:port
 
npm config set registry http://registry.npmjs.org/

 

Refer to more npm image:

 

 

Registry: http://registry.npmjs.org 

Website: npmjs.org 

Region: Global 

Data Center: Joyent, Fastly 

Maintainer: npm Inc. 

Established: 2010 

European npm Mirror

Registry: http://registry.npmjs.eu 

Website: npmjs.eu 

Region: Europe, Germany 

Data Center: Hetzner 

Maintainer: Maciej Małecki 

Established: November, 2013 

Australian npm Mirror

Registry: http://registry.npmjs.org.au 

Website: npm.nodejs.org.au 

Region: Australia 

Data Center: AWS 

Maintainer: Rod Vagg 

Established: July, 2013 

Nodejitsu US npm Mirror

Registry: https://registry.nodejitsu.com 

Website: nodejitsu.com 

Region: US East 

Data Center: Joyent 

Maintainer: Nodejitsu 

Established: January, 2014 

StrongLoop US npm Mirror

Registry: https://npm.strongloop.com 

Website: strongloop.com 

Region: US West 

Data Center: Rackspace 

Maintainer: StrongLoop 

Established: February, 2014

 

Set Path



Execution


To check the installation type:

node --v
npm -v

Bower

If you need install bower:

npm install -g bower

If you need proxy , try add-in .bowerrc

"proxy":"http://<host>:<port>", "https-proxy":"http://<host>:<port>", "strict-ssl": false
相關文章
相關標籤/搜索