NPM installer does not work, manual installing does not work either

I need to install Grunt and simmilar packages.

Firslty when I open the Node & NPM menu it is mostly empty

Screen Shot 2014-10-03 at 15.53.06.png

When I click the plus button an empty window will appear with nothing to do.

So I have installed Grunt cia command line but it would not be accesigle in Webstorm untill I did something like --save-dev. Now Grunt is usable from within Webstorm. Then I had to install grunt-contrib-uglify module (wuth the --save-dev flag), but even though it appears in the list above I am getting this error message whe I try to load the modukle in Grunt:

$ /usr/local/bin/grunt --gruntfile /Users/xxx/WebstormProjects/Version1/GruntFile.js default
>> Local Npm module "grunt-contrib-uglify" not found. Is it installed?

I wish I didn't have to waste my time with command line and everything worked like in the tutorials.

0
2 comments
When I click the plus button an empty window will appear with nothing to do.


this is npm issue (https://github.com/npm/npm/issues/6173) - WebStorm runs 'npm search' to get all packages from the registry. We are currently working on a workaround

Then I had to install grunt-contrib-uglify module (wuth the --save-dev flag), but even though it appears in the list above I am getting this error message whe I try to load the modukle in Grunt:

$ /usr/local/bin/grunt --gruntfile /Users/xxx/WebstormProjects/Version1/GruntFile.js default
>> Local Npm module "grunt-contrib-uglify" not found. Is it installed?


what command did you use to install it? Do you have this module in your project node_modules folder?

0
Avatar
Permanently deleted user

this is npm issue (https://github.com/npm/npm/issues/6173) - WebStorm runs 'npm search' to get all packages from the registry. We are currently working on a workaround


I confirm that the process consumes all my CPU, runs forever and already crashed my mac.


what command did you use to install it? Do you have this module in your project node_modules folder?


To be hones now I have everything everywhere. I would like to know what shoudkl be where and how to get it there but every tutorial I've found assumes that you automatically know what to install where when using command line.

I wish there was at least a folder called Node, instead everything is scattered all over the usr folder.

The unix executable node is in usr/local/bin and a copy of node_modules folder is now almost everywhere. The main is at usr/local/lib/. Each verion of the node_module folder contains both grunt and grunt-contrib-uglify while grunt works but fails to load the grunt-contrib-uglify module :(

0

Please sign in to leave a comment.