【已回应】centeros7系统BT6.9.8版本的计划任务中找不到npm和yarn
我己经装好npm和yarn,直接在linux中执行命令都是正常的,但是通过BT的计划任务就找不到命令。日志如下
/www/server/cron/5e6810edc81089ee0c4514abf9efe52f: line 6: npm: command not found----------------------------------------------------------------------------★ Successful----------------------------------------------------------------------------Already up-to-date./www/server/cron/5e6810edc81089ee0c4514abf9efe52f: line 6: yarn: command not found----------------------------------------------------------------------------★ Successful----------------------------------------------------------------------------Already up-to-date./www/server/cron/5e6810edc81089ee0c4514abf9efe52f: line 6: yarn: command not found---------------------------------------------------------------------------- 服务器上执行下 npm -v看下有没有npm的版本信息 /www/server/nvm/versions/node/v10.16.3/bin/npm
这个是npm的绝对路径。
页:
[1]