找不到 Node.js 可执行文件

找不到 Node.js 可执行文件

我正在使用 Ubuntu 16.04。我已经安装node-eclipse在我的系统中。当我尝试创建一个新项目时,控制台node-eclipse显示此错误

Node.js executable can't be found!
null
 /home/melbin/eclipse/jee-neon/eclipse/configuration/org.eclipse.osgi/1001/0/.cp/express/bin/express /tmp/express-work/1469790068444/prjct --ejs 
Unexpected Exception.

我已经安装了node.js和node express。

答案1

尝试使用确切的命令:

在此处输入图片描述

  nodeclipse --help
  Usage: nodeclipse [arguments]
  `nodeclipse --help install` for Nodeclipse CLI Installer Help

  Arguments:
 -c, --create <name>      create project folder and prepare it
 -u, --use <template>     use/copy specified template when creating     project
 -p, --prepare            prepare Nodeclipse [Node.js] project for import,    i.e. add needed `.project` file and other `.*`
                  files ('.gitignore', '.jshintrc', '.settings/') if   there is no `.project` yet
 -g, --eclipse_project_general   prepare General Eclipse project for import,  i.e. add only needed `.project` file
 -n, --name [<name>]      project name (default is folder name)
 -h, --help               this help screen
 -v, --version            print nodeclipse CLI's version
 -V, --verbose            be verbose

 Templates are just folders in this project sources:
 hello-world              The famous hello world HTTP server in 6 lines
 hello-coffee             The same server written in CoffeeScript
 hello-typescript         The same server written in TypeScript
 hello-html                       Template with HTML file
 template-gradle-java     Gradle Java project
 template-maven-java      Maven Java project

或者

尝试在“首选项”中配置路径 ==> Nodeclipse 也会安装以下软件包来帮助您。

sudo apt-get update
npm install -g nodeclipse

查看更多这里

相关内容