The above string is the installation record of cnpm
But when trying to start, it appears: Interpreter error: No such file or directory
Environment:
ubuntu 16.4
Suddenly found that the -g installation reported the same error
PHP中文网2017-06-30 09:58:52
The installation posture is wrong, sorry, it wastes space
Post the method here
Do not install from apt! Don't install from apt! Don't install from apt! The nodejs installed from apt is a very old version 4.x
Say important things three times.
Download the source code package directly from the official nodejs
The decompressed folders /bin/node and /bin/npm can be used directly
If you need a global view, just create ln
ringa_lee2017-06-30 09:58:52
It may be a coding error;
There seems to be an answer to the interpreter error on the ubuntu forum, you can check it out.