Questions tagged [nodenv]
2 questions
0
votes
1 answer
How do I pass parameters to an NPM script that uses nodenv?
I have a NodeJS app that uses the NPM package node-env-run (i.e. to load environment variables from .env file). The package.json, I have a script that looks like this:
"scripts": {
"run-jobs": "nodenv tests/run-jobs.js"
}
Sometimes when I run…

Raphi OKG
- 73
- 5
0
votes
1 answer
bash: "command not found" after installing a package in nodenv e.g. mocha, pm2
As example I will use pm2. I can't run the command pm2 on my nodenv nodejs installation. It will return:
$ pm2 -v
$ bash: pm2: command not found
further:
$ which pm2
does not return anything. What am I missing?
I installed it as the documentation…

mahatmanich
- 10,791
- 5
- 63
- 82