Error creating Node.js Express App. I can not find

error msg

I am trying to create a node.js project in WebStorm. Can you tell me what I am missing here?

+8
javascript webstorm
source share
5 answers

Got this from https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000137190-Create-express-4-15-project-fails-

It works!

1.npm install -g express-generator

  1. express <project_name>

  2. cd <project_name>, npm install

  3. in webstorm, File | open, select <project_name> folder

+12
source share

I have the same problem!. Old WebStorm shows this problem for creating Express-app version 4.15.0, but it works correctly for express version 4.14.1 and less.

+4
source share

Have you tried to install the required dependencies all over the world? This is usually done as follows:

npm install [dependency_name] -g 

In your case, it may be that the express generator is either not installed globally or is not available in PATH.

+1
source share

Just select another express version in the pop-up window (4.14.1, for example). When installing through Webstorm.

+1
source share

Just a reminder when you type:

 npm install -g express-generator 

Use sudo, otherwise it will not work. Like this:

 (1) sudo npm install -g express-generator 

Then:

 (2) express <Your_project_name> (3) cd <Your_project_name> (4) npm install (5) In WebStorm, File --> Open --> <Your_project_name> 
0
source share

All Articles