pi@raspberrypi:~ $ sudo apt-get install -y build-essential python nodejs npm
Reading package lists… Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
python is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
nodejs : Conflicts: npm
E: Unable to correct problems, you have held broken packages.
pi@raspberrypi:~ $ node -v
-bash: node: command not found
pi@raspberrypi:~ $ npm -v
-bash: npm: command not found