Cannot run npm in cron jobs

Viewed 159
which npm



/Users/rnd/.npm-packages/bin/npm


* * * * *  cd ~/doc | /Users/rnd/.npm-packages/bin/npm test  >/tmp/stdout.log 2>/tmp/stderr.log


output: 

env: node: No such file or directory

If i run exact same command in terminal, it works perfectly. What should i do?

0 Answers
Related