Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Webstorm 7 Mac OSX won't create a Node.js Express App

I've been trying to create a Node.JS app with the express framework in Webstorm 7. I keep getting the following error:

error

I suppose it has to do with permissions or the NPM route, thou I have no idea how to modify this in Webstorm.

NPM and NODE work just fine in the console, so I'm guessing this is Webstorm not finding or not being able to access the correct routes. Any help is much appreciated.

like image 273
Omar Gonzalez Avatar asked Oct 08 '13 23:10

Omar Gonzalez


1 Answers

It appears that the permissions for the ~/.npm directory were abnormal (sometimes happens if you run sudo npm install -g ...). Run

$ sudo chown -R Omar ~/.npm

from terminal in order to reset permissions.

like image 93
SheetJS Avatar answered Sep 22 '22 04:09

SheetJS