出现/usr/bin/env: node: No such file or directory错误解决方法

说明:在Ubuntu系统升级npm后,npm命令停止工作。突然,它开始出现/usr/bin/env: node: No such file or directory错误提示。然后运行以下命令,问...

node error.png

说明:Ubuntu系统升级npm后,npm命令停止工作。突然,它开始出现/usr/bin/env: node: No such file or directory错误提示。

然后运行以下命令,问题就自己解决了,希望能帮到你。

sudo ln -s /usr/bin/nodejs /usr/bin/node
0 I like it
0 I don't like it

Leave a Reply

Your email address will not be published. Required fields are marked *