Add proxy to the npm with nodejs
1 2 |
npm config set proxy http://proxy.company.com:8080 npm config set https-proxy http://proxy.company.com:8080 |
1 2 |
npm config set proxy http://proxy.company.com:8080 npm config set https-proxy http://proxy.company.com:8080 |
The build file should like the following below:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
{ "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "selector": "source.js", "shell":true, "encoding": "cp936", "windows": { "cmd": "taskkill /F /IM node.exe /T & node $file" }, "linux": { "cmd": ["killall node; node", "$file"] } } |
If you want to test the command line in ST3, just type “dir”(“” should contain) in “windows” -> “cmd”, then you may know how it worked.
1. npm install node-static -g
2. mkdir public (we could add files on the folder)
3. static /root/public -a 0.0.0.0
Note: If you want more help, try static -h