Add proxy to the npm with nodejs
npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080
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:
{
"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