Nodeclipse / nodeclipse

Nodeclipse-1 : Eclipse plugin for Node.js, PhantomJS development (Nodeclipse core plugin); Maven and Gradle (with Android) plugins

Home Page:https://nodeclipse.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem npm install nodeclipse in Linux / Ubuntu

mparanhos opened this issue · comments

I have nodejs and npm installed.
I tested npm -v and nodejs -v it worked, showed the current version.

  1. I used the nodeclipse -p command line in my empty folder to create the project structure, but I received the error: command not found.
  2. I uninstalled the nodeclipse with npm uninstall and installed again with sudo npm install and did not work.
  3. I used the root account and run the npm install also did not work.

I don´t found the npm or nodejs references to set the environment variable to set the nodeclipse.

Can anyone help please?

I used the nodeclipse -p command line in my empty folder to create the project structure, but I received the error: command not found.

paranhos@pc-principal:~/workspace-javascript/react-sample$ nodeclipse -p
/usr/bin/env: "node": File or directory not found

Solution: Create a Symbolic Link
sudo ln -s "$ (which nodejs)" /usr/bin/node
or
sudo ln -s /usr/bin/nodejs /usr/bin/node

Bug Report: nodeclipse find node command but not nodejs command. Node.js for Linux use nodejs as command and Windows uses node as command.

also on http://stackoverflow.com/questions/38531239/nodeclipse-command-not-found-on-linux-after-install-it

I don't think this is bug of nodeclipse or node, as it is OS specific problem. (Because there was other package on Linux named node)

By the way, sources are in .js files here https://github.com/Nodeclipse/nodeclipse-1/tree/master/org.nodeclipse.ui/templates#nodeclipse-cli--installer

Thank @paulvi.
I also can solve this question, installing the new nodejs version for my linux distro.
Getting ".deb" package directly and following the instructions in the url´s:

https://nodejs.org/en/download/package-manager/
https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions

In the version 4.4.7 was Included "node" and "nodejs" as command.