在Eclipse中创建Node Express Js项目

时间:2018-11-29 18:17:17

标签: node.js express eclipse-plugin

我已经使用npm i -g express安装了express.js,并使用npm i -g express-generator安装了express generator。

我已经从eclipse市场安装了node enide插件,但是当我在eclipse中创建一个node express项目时,我得到Unexpected Exception

我已经尝试过但找不到问题:

Nodeclipse:1.0.2.201509250223 Eclipse:4.6.3.v20170301-0400 Java:1.8.0_121 OS:win32,x86_64
visit http://www.nodeclipse.org/

C:\Program Files\nodejs\node.exe C:\Users\vipul\Downloads\eclipse\configuration\org.eclipse.osgi\1227\0\.cp\express\bin\express C:\Users\vipul\AppData\Local\Temp\express-work\1543514464807/kfsdk 
RelativityFileSystemStructureProvider.cllectFiles() called. file count=0
  templateRoot: C:\Users\vipul\Downloads\eclipse\configuration\org.eclipse.osgi\1236\0\.cp\templates\common-templates
RelativityFileSystemStructureProvider.getContents() called. elemnt=C:\Users\vipul\Downloads\eclipse\configuration\org.eclipse.osgi\1236\0\.cp\templates\common-templates\.jshintrc
RelativityFileSystemStructureProvider.getContents() called. elemnt=C:\Users\vipul\Downloads\eclipse\configuration\org.eclipse.osgi\1236\0\.cp\templates\common-templates\.settings\.jsdtscope
RelativityFileSystemStructureProvider.getContents() called. elemnt=C:\Users\vipul\Downloads\eclipse\configuration\org.eclipse.osgi\1236\0\.cp\templates\common-templates\.settings\com.eclipsesource.jshint.ui.prefs
RelativityFileSystemStructureProvider.getContents() called. elemnt=C:\Users\vipul\Downloads\eclipse\configuration\org.eclipse.osgi\1236\0\.cp\templates\common-templates\.settings\org.eclipse.wst.jsdt.core.prefs
RelativityFileSystemStructureProvider.getContents() called. elemnt=C:\Users\vipul\Downloads\eclipse\configuration\org.eclipse.osgi\1236\0\.cp\templates\common-templates\.settings\org.eclipse.wst.jsdt.ui.superType.container
RelativityFileSystemStructureProvider.getContents() called. elemnt=C:\Users\vipul\Downloads\eclipse\configuration\org.eclipse.osgi\1236\0\.cp\templates\common-templates\.settings\org.eclipse.wst.jsdt.ui.superType.name
RelativityFileSystemStructureProvider.getContents() called. elemnt=C:\Users\vipul\Downloads\eclipse\configuration\org.eclipse.osgi\1236\0\.cp\templates\common-templates\.sublime-project
RelativityFileSystemStructureProvider.getContents() called. elemnt=C:\Users\vipul\Downloads\eclipse\configuration\org.eclipse.osgi\1236\0\.cp\templates\common-templates\README.md
Unexpected Exception

我检查了错误日志。它显示以下异常

java.lang.reflect.InvocationTargetException     在  org.nodeclipse.ui.wizards.ExpressProjectWizard $ 2.run(ExpressProjectWizard.java:147)     在org.eclipse.jface.operation.ModalContext $ ModalContextThread.run(ModalContext.java:122)     原因:org.eclipse.core.runtime.CoreException:找不到package.json     在org.nodeclipse.ui.wizards.ExpressProjectWizard.rewritePackageJson(ExpressProjectWizard.java:289)     在org.nodeclipse.ui.wizards.ExpressProjectWizard.access $ 4(ExpressProjectWizard.java:285)     在org.nodeclipse.ui.wizards.ExpressProjectWizard $ 2.run(ExpressProjectWizard.java:137)     ...还有1个     根异常: org.eclipse.core.runtime.CoreException:找不到package.json     在org.nodeclipse.ui.wizards.ExpressProjectWizard.rewritePackageJson(ExpressProjectWizard.java:289)     在org.nodeclipse.ui.wizards.ExpressProjectWizard.access $ 4(ExpressProjectWizard.java:285)     在org.nodeclipse.ui.wizards.ExpressProjectWizard $ 2.run(ExpressProjectWizard.java:137)     在org.eclipse.jface.operation.ModalContext $ ModalContextThread.run(ModalContext.java:122)

0 个答案:

没有答案