nodeclipse: command not found on Linux after install it

1.2k Views Asked by At

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

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

I uninstalled the nodeclipse with npm uninstall and installed again with sudo npm install and did not work.

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 or config it.

Can anyone help please?

3

There are 3 best solutions below

0
Marco Paranhos On

Problem
There is a bug in nodeclipse plugin that recognizes Node.js as node command the Windows installation.
In Linux the nodeclipse plugin tries to find the command node and can not find. Why on Linux, the nodejs command is utilized for the Node.js installed.

printing error in the terminal

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


Successful result

paranhos @ pc-main: ~ $ node -v 
v4.4.2 
paranhos @ pc-main: ~ $ nodejs -v 
v4.4.2 
paranhos @ pc-main: ~ $ nodeclipse -h    
Usage: nodeclipse [arguments]    
--help Nodeclipse install > is Nodeclipse CLI Installer Help
0
Marco Paranhos On

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 or latest was Included node and nodejs as command.

0
Pravin Netke On

Install with npm install -g nodeclipse

then work nodeclipse command

Hope work fine