Home > Article > Web Front-end > Why Can\'t I Execute Node After Installation on Ubuntu 12.04?
Despite following installation instructions, you may encounter issues executing node in the terminal, receiving the error: "-bash: /usr/sbin/node: No such file or directory." This occurs despite the presence of node in the /usr/sbin/ directory.
To resolve this issue, you'll need to create a symlink:
<code class="Bash">sudo ln -s `which nodejs` /usr/bin/node</code>
Alternately, if you're not using a bash-compatible shell:
<code class="Bash">sudo ln -s /usr/bin/nodejs /usr/bin/node</code>
Explanation from Installation Instructions
The naming conflict between node (Amateur Packet Radio Node Program) and nodejs necessitates the symlink to avoid conflicts.
Additional Solutions from Comments
Users have reported the following solutions:
The above is the detailed content of Why Can\'t I Execute Node After Installation on Ubuntu 12.04?. For more information, please follow other related articles on the PHP Chinese website!