/usr/bin/env: node: No such file or directory

在crontab上执行node出现这个错误。。。
/usr/bin/env: node: No such file or directory
解决方案,缺少软连接:
ln -s /usr/bin/local/node /usr/bin/node
另PS:在crontab 里执行命令需要加上程序的绝对路径,因为执行环境不一样。。
eg:
/usr/bin/php /root/index.php直接写php是不行的。。识别不到环境变量



本文作者:起点终站
文章标题: /usr/bin/env: node: No such file or directory
本文地址:https://blog.hellozwh.com/?post=311
版权声明:若无注明,本文皆为“起点终站”原创,转载请保留文章出处。
本文地址:https://blog.hellozwh.com/?post=311
版权声明:若无注明,本文皆为“起点终站”原创,转载请保留文章出处。

