asdf-nodejs icon indicating copy to clipboard operation
asdf-nodejs copied to clipboard

PM2: command not found

Open rafosolima opened this issue 3 years ago • 0 comments

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?

rafosolima avatar Sep 19 '22 22:09 rafosolima