I've tried to run Grunt.js before I compile and launch my project without any luck.
I've tried to run it with the "Run External Tool" option in IntelliJ configuration edition menu, it asks you for the path of the program you want to run, I've tried to add the Grunt path in /usr/bin but it tells me that the node environment cannot be found.
Installing grunt-cli locally json to run the associated grunt command: "scripts": { "test": "grunt test" } . Now npm test will use the locally installed ./node_modules/. bin/grunt executable to run your Grunt commands. To read more about npm scripts, please visit the npm docs: https://docs.npmjs.com/misc/scripts.
The easiest way to add Grunt and gruntplugins to an existing package. json is with the command npm install <module> --save-dev . Not only will this install <module> locally, but it will automatically be added to the devDependencies section, using a tilde version range.
This answer helped me more than what you selected as the correct answer. The difference is that this one is for webstorm. Here's what I'd do: I'd install the node.js plugin in intellij, then configure it like this:
C:\Program Files\nodejs\node.exe
C:\Users\yourusername\AppData\Roaming\npm\node_modules\grunt-cli\bin\grunt
This is on windows 7.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With