Create express 4.15 project fails.

Start Webstorm, click create project, select Node.js Express App, select node interpreter (7.6.0), select Express Generator version 4.15.0, click create.

Get error...

Create Express Project: Cannot create Node.js Express App: Cannot find /tmp/intellij-express-generator1/node_modules/express-generator/bin/express

This file does not exist, the only file in bin is express-cli.js

WebStorm 2017.1
Build #WS-171.3780.79, built on March 17, 2017
JRE: 1.8.0_112-release-736-b13 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.4.0-71-generic

15 comments
Comment actions Permalink

2017-03-30 14:53:11,992 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2017-03-30 14:53:11,999 [ 7] INFO - #com.intellij.util.ui.JBUI - UI scale factor: 1.0
2017-03-30 14:53:12,008 [ 16] INFO - #com.intellij.idea.Main - IDE: WebStorm (build #WS-171.3780.79, 17 Mar 2017 17:11)
2017-03-30 14:53:12,008 [ 16] INFO - #com.intellij.idea.Main - OS: Linux (4.4.0-71-generic, amd64)
2017-03-30 14:53:12,008 [ 16] INFO - #com.intellij.idea.Main - JRE: 1.8.0_112-release-736-b13 (JetBrains s.r.o)
2017-03-30 14:53:12,008 [ 16] INFO - #com.intellij.idea.Main - JVM: 25.112-b13 (OpenJDK 64-Bit Server VM)
2017-03-30 14:53:12,009 [ 17] INFO - #com.intellij.idea.Main - JVM Args: -Xbootclasspath/a:/home/paul/WebStorm-163.12024.17/lib/boot.jar -Xms128m -Xmx750m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Dawt.useSystemAAFontSettings=lcd -Dsun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine -XX:ErrorFile=/home/paul/java_error_in_WEBIDE_%p.log -XX:HeapDumpPath=/home/paul/java_error_in_WEBIDE.hprof -Didea.paths.selector=WebStorm2017.1 -Djb.vmOptionsFile=/home/paul/WebStorm-163.12024.17/bin/webstorm64.vmoptions -Didea.platform.prefix=WebStorm
2017-03-30 14:53:12,010 [ 18] INFO - #com.intellij.idea.Main - ext: /home/paul/WebStorm-163.12024.17/jre/lib/ext: [nashorn.jar, meta-index, jfxrt.jar, sunjce_provider.jar, localedata.jar, cldrdata.jar, zipfs.jar, jaccess.jar, sunpkcs11.jar, dnsns.jar, sunec.jar]
2017-03-30 14:53:12,010 [ 18] INFO - #com.intellij.idea.Main - JNU charset: UTF-8
2017-03-30 14:53:12,023 [ 31] INFO - #com.intellij.idea.Main - JNA library (64-bit) loaded in 13 ms
2017-03-30 14:53:12,330 [ 338] INFO - .intellij.idea.IdeaApplication - WM detected: Compiz
2017-03-30 14:53:12,546 [ 554] INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor plugin-intelliLang.xml
2017-03-30 14:53:12,768 [ 776] INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor uml-properties-support.xml
2017-03-30 14:53:12,769 [ 777] INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor uml-java-support.xml
2017-03-30 14:53:12,894 [ 902] INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor js-nashorn-support.xml
2017-03-30 14:53:13,015 [ 1023] INFO - llij.ide.plugins.PluginManager - Plugin 'Markdown Navigator' can't be loaded because: Plugin is disabled
2017-03-30 14:53:13,099 [ 1107] INFO - llij.ide.plugins.PluginManager - 60 plugins initialized in 605 ms
2017-03-30 14:53:13,100 [ 1108] INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: ASP (0.1), AngularJS (171.3780.79), CSS Support (171.3780.79), CVS Integration (11), CoffeeScript (2.0), Cucumber.js (0.1), Dart (171.3780.79), Docker integration (2.5.2), EJS (171.3780.79), EditorConfig (171.3780.79), File Watchers (171.3780.79), Gherkin (999.999), Git Integration (8.1), GitHub (171.3780.79), HTML Tools (2.0), Haml (171.3780.79), Handlebars/Mustache (171.3780.79), IDEA CORE (171.3780.79), IntelliLang (8.0), Java Server Pages (JSP) Integration (1.0), JavaScript Debugger (1.0), JavaScript Intention Power Pack (0.9.4), JavaScript Support (1.0), Karma (171.3780.79), Less support (171.3780.79), LiveEdit (171.3780.79), Meteor (171.3780.79), Node.js Remote Interpreter (171.3780.79), NodeJS (171.3780.79), Perforce Integration (2.0), PhoneGap/Cordova Plugin (171.3780.79), Polymer & Web Components (999.999), Pug (ex-Jade) (171.3780.79), QuirksMode (171.3780.79), REST Client (171.3780.79), Refactor-X (2.01), Remote Hosts Access (0.1), SSH Remote Run (0.1), Sass support (171.3780.79), Settings Repository (171.3780.79), Spy-js (171.3780.79), Stylus support (999.999), Subversion Integration (1.1), Task Management (1.0), Terminal (0.1), TextMate bundles support (VERSION), Time Tracking (1.0), UML Support (1.0), Vagrant (171.3780.79), Vue.js (171.3780.79), W3C Validators (2.0), XPathView + XSLT Support (4), XSLT-Debugger (1.4), YAML (171.3780.79), Yeoman (171.3780.79), hg4idea (10.0), tslint (171.3780.79)
2017-03-30 14:53:13,100 [ 1108] INFO - llij.ide.plugins.PluginManager - Loaded custom plugins: BashSupport (1.6.5.171), Markdown support (2017.1.20170302)
2017-03-30 14:53:13,100 [ 1108] INFO - llij.ide.plugins.PluginManager - Disabled plugins: Markdown Navigator (2.3.2)
2017-03-30 14:53:13,524 [ 1532] INFO - ellij.util.io.PagedFileStorage - lower=100; upper=500; buffer=10; max=705
2017-03-30 14:53:13,563 [ 1571] INFO - pl.local.NativeFileWatcherImpl - Starting file watcher: /home/paul/WebStorm-163.12024.17/bin/fsnotifier64
2017-03-30 14:53:13,571 [ 1579] INFO - pl.local.NativeFileWatcherImpl - Native file watcher is operational.
2017-03-30 14:53:13,661 [ 1669] INFO - pi.util.registry.RegistryState - Registry values changed by user:
2017-03-30 14:53:13,661 [ 1669] INFO - pi.util.registry.RegistryState - dumb.aware.run.configurations = true
2017-03-30 14:53:14,434 [ 2442] INFO - rains.ide.BuiltInServerManager - built-in server started, port 63342
2017-03-30 14:53:14,455 [ 2463] INFO - gs.impl.UpdateCheckerComponent - channel: release
2017-03-30 14:53:14,560 [ 2568] INFO - il.indexing.FileBasedIndexImpl - Index exts enumerated:35
2017-03-30 14:53:14,565 [ 2573] INFO - il.indexing.FileBasedIndexImpl - Index scheduled:5
2017-03-30 14:53:14,594 [ 2602] INFO - tellij.psi.stubs.StubIndexImpl - All stub exts enumerated:22
2017-03-30 14:53:14,594 [ 2602] INFO - tellij.psi.stubs.StubIndexImpl - stub exts update scheduled:0
2017-03-30 14:53:14,622 [ 2630] INFO - j.ide.script.IdeStartupScripts - 0 startup script(s) found
2017-03-30 14:53:14,722 [ 2730] INFO - plication.impl.ApplicationImpl - 79 application components initialized in 2232ms
2017-03-30 14:53:14,726 [ 2734] INFO - .intellij.idea.IdeaApplication - App initialization took 3459 ms
2017-03-30 14:53:15,107 [ 3115] INFO - pl$FileIndexDataInitialization - Initialization done:542
2017-03-30 14:53:15,167 [ 3175] INFO - exImpl$StubIndexInitialization - Initialization done:59
2017-03-30 14:53:15,930 [ 3938] INFO - ellij.project.impl.ProjectImpl - 15 project components initialized in 191 ms
2017-03-30 14:53:16,017 [ 4025] INFO - .openapi.application.Preloader - Finished preloading com.intellij.openapi.actionSystem.impl.ActionPreloader@1361ef90
2017-03-30 14:53:16,378 [ 4386] INFO - .openapi.application.Preloader - Finished preloading com.intellij.ide.ui.search.SearchableOptionPreloader@53244fa
2017-03-30 14:53:16,506 [ 4514] INFO - .openapi.application.Preloader - Finished preloading com.intellij.codeInsight.completion.CompletionPreloader@5f90086e
2017-03-30 14:53:19,981 [ 7989] WARN - til.ui.update.LazyUiDisposable - use application as a parent disposable
2017-03-30 14:53:21,361 [ 9369] WARN - til.ui.update.LazyUiDisposable - use application as a parent disposable
2017-03-30 14:53:28,746 [ 16754] INFO - ellij.project.impl.ProjectImpl - 106 project components initialized in 400 ms
2017-03-30 14:53:28,746 [ 16754] INFO - le.impl.ModuleManagerComponent - 0 module(s) loaded in 0 ms
2017-03-30 14:53:28,801 [ 16809] INFO - i.vcs.changes.ChangeListWorker - default list not found when copy
2017-03-30 14:53:28,801 [ 16809] INFO - i.vcs.changes.ChangeListWorker - default list not found when copy in original object too
2017-03-30 14:53:28,922 [ 16930] INFO - i.vcs.changes.ChangeListWorker - default list not found when copy
2017-03-30 14:53:28,922 [ 16930] INFO - i.vcs.changes.ChangeListWorker - default list not found when copy in original object too
2017-03-30 14:53:29,170 [ 17178] WARN - om.intellij.util.ProfilingUtil - Profiling agent is not enabled. Add -agentlib:yjpagent to idea.vmoptions if necessary to profile IDEA.
2017-03-30 14:53:29,760 [ 17768] INFO - Tools.base.JsbtStartupActivity - Detecting buildfiles for com.intellij.lang.javascript.buildTools.grunt.GruntfileManager
2017-03-30 14:53:29,761 [ 17769] INFO - Tools.base.JsbtStartupActivity - Detecting buildfiles for com.intellij.lang.javascript.buildTools.gulp.GulpfileManager
2017-03-30 14:53:29,761 [ 17769] INFO - Tools.base.JsbtStartupActivity - Detecting buildfiles for com.intellij.lang.javascript.buildTools.npm.PackageJsonFileManager
2017-03-30 14:53:29,762 [ 17770] INFO - tartup.impl.StartupManagerImpl - JsbtStartupActivity run in 215
2017-03-30 14:53:29,938 [ 17946] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 8ms; general responsiveness: ok; EDT responsiveness: ok
2017-03-30 14:53:30,099 [ 18107] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 160ms; general responsiveness: ok; EDT responsiveness: ok
2017-03-30 14:53:30,125 [ 18133] INFO - tartup.impl.StartupManagerImpl - /home/paul/workspace/untitled2/.idea case-sensitivity: expected=true actual=true
2017-03-30 14:53:30,167 [ 18175] INFO - xpress.ExpressProjectGenerator - Running '/home/paul/node-v7.6.0-linux-x64/bin/node /home/paul/node-v7.6.0-linux-x64/lib/node_modules/npm/bin/npm-cli.js install express-generator@4.15.0' in /tmp/intellij-express-generator1
2017-03-30 14:53:31,286 [ 19294] INFO - xpress.ExpressProjectGenerator - stdout: /tmp/intellij-express-generator1
└─┬ express-generator@4.15.0
├─┬ commander@2.9.0
│ └── graceful-readlink@1.0.1
├── ejs@2.5.6
├─┬ mkdirp@0.5.1
│ └── minimist@0.0.8
└── sorted-object@2.0.1
2017-03-30 14:53:31,286 [ 19294] INFO - xpress.ExpressProjectGenerator - stderr: npm WARN lifecycle npm is using /home/paul/node-v7.6.0-linux-x64/bin/node but there is no node binary in the current PATH. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
npm WARN enoent ENOENT: no such file or directory, open '/tmp/intellij-express-generator1/package.json'
npm WARN intellij-express-generator1 No description
npm WARN intellij-express-generator1 No repository field.
npm WARN intellij-express-generator1 No README data
npm WARN intellij-express-generator1 No license field.
2017-03-30 14:53:31,287 [ 19295] WARN - xpress.ExpressProjectGenerator - Cannot find /tmp/intellij-express-generator1/node_modules/express-generator/bin/express
com.jetbrains.nodejs.boilerplate.express.ExpressProjectGenerator$GeneratorException: Cannot find /tmp/intellij-express-generator1/node_modules/express-generator/bin/express
at com.jetbrains.nodejs.boilerplate.express.ExpressProjectGenerator.generateExpressApp(ExpressProjectGenerator.java:210)
at com.jetbrains.nodejs.boilerplate.express.ExpressProjectGenerator.generateProject(ExpressProjectGenerator.java:91)
at com.jetbrains.nodejs.boilerplate.express.ExpressProjectGenerator.generateProject(ExpressProjectGenerator.java:53)
at com.intellij.ide.util.projectWizard.AbstractNewProjectStep.a(AbstractNewProjectStep.java:222)
at com.intellij.platform.PlatformProjectOpenProcessor.doOpenProject(PlatformProjectOpenProcessor.java:262)
at com.intellij.ide.util.projectWizard.AbstractNewProjectStep.doGenerateProject(AbstractNewProjectStep.java:227)
at com.intellij.ide.util.projectWizard.AbstractNewProjectStep$AbstractCallback.consume(AbstractNewProjectStep.java:166)
at com.intellij.ide.util.projectWizard.AbstractNewProjectStep$AbstractCallback.consume(AbstractNewProjectStep.java:157)
at com.intellij.ide.util.projectWizard.ProjectSettingsStepBase$1.actionPerformed(ProjectSettingsStepBase.java:132)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6541)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6306)
at java.awt.Container.processEvent(Container.java:2236)
at java.awt.Component.dispatchEventImpl(Component.java:4897)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Component.dispatchEvent(Component.java:4719)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
at java.awt.Container.dispatchEventImpl(Container.java:2280)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4719)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:737)
at java.awt.EventQueue$4.run(EventQueue.java:735)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:827)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:651)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:365)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
2017-03-30 14:53:32,710 [ 20718] INFO - cript.buildTools.base.JsbtUtil - Iterating over content roots for module /home/paul/workspace/untitled2/.idea/untitled2.iml
2017-03-30 14:53:32,710 [ 20718] INFO - cript.buildTools.base.JsbtUtil - Detecting in content root /home/paul/workspace/untitled2
2017-03-30 14:53:32,710 [ 20718] INFO - cript.buildTools.base.JsbtUtil - Detecting by children: [file:///home/paul/workspace/untitled2/.idea]
2017-03-30 14:53:32,710 [ 20718] INFO - Tools.base.JsbtStartupActivity - Found [] for com.intellij.lang.javascript.buildTools.grunt.GruntService
2017-03-30 14:53:32,711 [ 20719] INFO - cript.buildTools.base.JsbtUtil - Iterating over content roots for module /home/paul/workspace/untitled2/.idea/untitled2.iml
2017-03-30 14:53:32,711 [ 20719] INFO - cript.buildTools.base.JsbtUtil - Detecting in content root /home/paul/workspace/untitled2
2017-03-30 14:53:32,711 [ 20719] INFO - cript.buildTools.base.JsbtUtil - Detecting by children: [file:///home/paul/workspace/untitled2/.idea]
2017-03-30 14:53:32,711 [ 20719] INFO - Tools.base.JsbtStartupActivity - Found [] for com.intellij.lang.javascript.buildTools.gulp.GulpService
2017-03-30 14:53:32,711 [ 20719] INFO - cript.buildTools.base.JsbtUtil - Iterating over content roots for module /home/paul/workspace/untitled2/.idea/untitled2.iml
2017-03-30 14:53:32,712 [ 20720] INFO - cript.buildTools.base.JsbtUtil - Detecting in content root /home/paul/workspace/untitled2
2017-03-30 14:53:32,712 [ 20720] INFO - ols.npm.PackageJsonFileManager - Found package.json in /home/paul/workspace/untitled2: null
2017-03-30 14:53:32,712 [ 20720] INFO - Tools.base.JsbtStartupActivity - Found [] for com.intellij.lang.javascript.buildTools.npm.NpmScriptsService
2017-03-30 14:53:32,747 [ 20755] INFO - tor.impl.FileEditorManagerImpl - Project opening took 4464 ms
2017-03-30 14:53:36,393 [ 24401] INFO - stubs.SerializationManagerImpl - START StubSerializationManager SHUTDOWN
2017-03-30 14:53:36,394 [ 24402] INFO - stubs.SerializationManagerImpl - END StubSerializationManager SHUTDOWN
2017-03-30 14:53:36,395 [ 24403] INFO - org.jetbrains.io.BuiltInServer - web server stopped
2017-03-30 14:53:36,405 [ 24413] INFO - Types.impl.FileTypeManagerImpl - FileTypeManager: 1 auto-detected files
Elapsed time on auto-detect: 7 ms
2017-03-30 14:53:36,408 [ 24416] INFO - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 0
2017-03-30 14:53:36,409 [ 24417] INFO - il.indexing.FileBasedIndexImpl - START INDEX SHUTDOWN
2017-03-30 14:53:36,450 [ 24458] INFO - il.indexing.FileBasedIndexImpl - END INDEX SHUTDOWN
2017-03-30 14:53:36,452 [ 24460] INFO - newvfs.persistent.PersistentFS - VFS dispose started
2017-03-30 14:53:36,454 [ 24462] INFO - newvfs.persistent.PersistentFS - VFS dispose completed
2017-03-30 14:53:36,459 [ 24467] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE SHUTDOWN ------------------------------------------------------
2017-03-30 14:53:36,459 [ 24467] INFO - org.jetbrains.io.BuiltInServer - web server stopped

0
Comment actions Permalink

Thanks!

The issue is caused by recent changes in express-generator structure: express.js has been renamed to express-cli.js in 4.15

0
Comment actions Permalink

Will this be released as a hotfix or will this be something that we would have to do manually?

If there is a way to do this manually, can you please direct me in how to do it please?

0
Comment actions Permalink

1.npm install -g express-generator

2. express <project_name>

3. cd <project_name>, npm install

4. in webstorm, File | open, choose <project_name> folder

3
Comment actions Permalink

I'm having the same Issue. So I'm following elena instructions. 

0
Comment actions Permalink

Same issue for me as well. Elena's instructions did the trick. Just had to change jade files to ejs. Look forward to the fix. Great product, nevertheless! Keep up the good work!

0
Comment actions Permalink

I had the same issue and this problem occurred after I updated from 2016.2 to 2017.1. 

0
Comment actions Permalink

As someone who just bought webstorm and is quite new to programming, this is a real issue. Fortunately, I had a previous project saved but I don't know how to create a new express project. Elena's instructions are too vague for my noob understanding. I tried installing a previous version of webstorm but still get the same. They really NEED to patch this issue ASAP.

0
Comment actions Permalink

Kevin, the JetBrains folks are amazing. Give it few days and I'll bet you see the fix. If you're in a hurry, shoot em an email. WebStorm is a great product you'll soon find indispensable.

0
Comment actions Permalink

> I had a previous project saved but I don't know how to create a new express project

 

just choose a different Express version in popup (4.14.1, for example)

> I tried installing a previous version of webstorm but still get the same.

Sure - as this is not a regression/bug in WebStorm, problem is caused by recent changes in Express generator WebStorm uses to create a project

1
Comment actions Permalink

Elena thank you for your quick and helpful response.You are totally right and I really really appreciate it. Issue SOLVED!

0
Comment actions Permalink

Thanks Elena!

I entered express -h to get a list of options, including -e to use the ejs engine. Then, I could run

express -e myproj

0
Comment actions Permalink

Thanks Elena! I started facing this issue after upgrading from 2016 version to 2017.1

 

0

Please sign in to leave a comment.