asdf-nodejs
asdf-nodejs copied to clipboard
PM2: command not found
I have the node version and yarn:
asdf current
nodejs 16.14.0 /home/raphael/.tool-versions
yarn 1.22.19 /home/raphael/.tool-versions
I have already used the command:
asdf reshim
I can run the commands in my terminal, but when I use the execSync command importing from lib child_process the following message appears:
/bin/sh: line 1: pm2: command not found
Error: Command failed: pm2 start ecosystem.config.js
/bin/sh: line 1: pm2: command not found
I use wsl2 + arch linux (terminal)
Can anyone help me?