

While the node.js plugin seems to come with a pretty GUI for the NPM, it just made my computers fan whirr while for several minutes while trying to get a list of available packages. We will use the Node Package Manager to install those two packages. Code Compiler will compile your code and then rebuild parts where it can safely improve efficiencies. YUI Compressor does the standard minification. Now we need to install the libraries that actually do the minification processes.
#Phpstorm nodejs how to#
If properly installed, you will now be able to type npm into the command line and get information on how to use it. And by default everything should be symlinked so the npm command will work anywhere. A little note, /usr/local/lib/node_modules is the important directory and it should hold by default npm ( Node Package Manager ). Then go into PhpStorm and install the node.js plugin to finish that integration.

Head over to and click install to download, and then run the pkg, defaults will work. Alright, lets get going.įirst, this was also my introduction to Node.js, but not to worry if it is yours too, we will only be using it as a simply command line utility. So, if you’re stuck and on windows you should be good to find specifics with a quick google.
#Phpstorm nodejs mac osx#
It took a minute to figure out as i’m using Mac OSX Maverick, and all of the articles on it were for Windows. As a programmer it doesn’t get any better than that, so I felt very silly for not doing a good job of it over the years when I figured out this trick. If you are using PhpStorm then css and javascript minification is a set it and forget it process that requires no maintenance after setup.
