简体   繁体   中英

npm/grunt: is it possible to install grunt without npm?

I am having so much problems with the proxy system of my entertprise

I was changing parameter using npm config set changing the variable proxy and http-proxy.

I installed in my .npmrc next lines

npm config set proxy http://my_user:my_password@10.3.12.130:8080 -g
npm config set https-proxy http://my_user:my_password@10.3.12.130:8080 -g

What I have in my mind it is try to install grunt in VS2012 without using npm, maybe like nuget.

Is it possible?

I am getting this error page when I am using npm install -g grunt-cli :

在此输入图像描述

Yes it is possible, you can download grunt and run it in your node.js environment, if your only problem is proxy or firewall but you have working node.js environment then just download it from the github .

You can download any npm package which is published also on the github and then copy it manually to you node_modules folder. Just beware that those packages may have dependencies on their own. SO that means you should run npm install in those downloaded folders and if it doesn't work do it manually for every dependency recursively until you are finished.

No, it is not possible.

This is from the Grunt getting started guide :

Grunt and Grunt plugins are installed and managed via npm, the Node.js package manager. Grunt 0.4.x requires stable Node.js versions >= 0.8.0. Odd version numbers of Node.js are considered unstable development versions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM