Node Not Found. — /usr/bin/env: ‘node’: No such file or directory

Hey there,

So I was attempting to run pnpm i discordjs/discord.js, but it resulted in this error: /usr/bin/env: ‘node’: No such file or directory. How can I fix this? I need to install a couple packages, and this is getting in the way of my work atm. Please respond ASAP.


We recommend you add packages you need to install to your package.json file, rather than installing from the command line.

1 Like