I tried to install a GRUNT (which a javascript task runner to perform repetitive tasks like minification, compilation, unit testing, linting, etc...) but getting network proxy configuration settings error. So started googling to get a solution and found out the below steps to rectify this error.
C:\Users\amahalingam>npm config set proxy http://hostname:80
C:\Users\amahalingam>npm config set https-proxy http://hostname:80
C:\Users\amahalingam>npm install -g grunt-cli
C:\Users\amahalingam\AppData\Roaming\npm\grunt -> C:\Users\amahalingam\AppData\R
oaming\npm\node_modules\grunt-cli\bin\grunt
grunt-cli@0.1.13 C:\Users\amahalingam\AppData\Roaming\npm\node_modules\grunt-cli
├── resolve@0.3.1
├── nopt@1.0.10 (abbrev@1.0.5)
└── findup-sync@0.1.3 (lodash@2.4.2, glob@3.2.11)
Screenshots:
Error:
Solution:
C:\Users\amahalingam>npm config set proxy http://hostname:80
C:\Users\amahalingam>npm config set https-proxy http://hostname:80
C:\Users\amahalingam>npm install -g grunt-cli
C:\Users\amahalingam\AppData\Roaming\npm\grunt -> C:\Users\amahalingam\AppData\R
oaming\npm\node_modules\grunt-cli\bin\grunt
grunt-cli@0.1.13 C:\Users\amahalingam\AppData\Roaming\npm\node_modules\grunt-cli
├── resolve@0.3.1
├── nopt@1.0.10 (abbrev@1.0.5)
└── findup-sync@0.1.3 (lodash@2.4.2, glob@3.2.11)
Screenshots:
Error:
Solution:
0 comments:
Post a Comment