Closed jarvisaoieong closed 5 years ago
I've used nvm to run node projects in different version.
So i set the npm scripts as below for convenience
"scripts": { "start": "$NVM_DIR/nvm-exec node-dev index.js | bunyan -L" },
I can't set this to absolute path because the project is developed by different people.
When i use hotel add 'npm start' to startup the project, it fails as below
hotel add 'npm start'
Try including -e NVM_DIR in your hotel add command.
-e NVM_DIR
hotel add
It works!
Oh..I've miss this option. THX so much.
I've used nvm to run node projects in different version.
So i set the npm scripts as below for convenience
I can't set this to absolute path because the project is developed by different people.
When i use
hotel add 'npm start'
to startup the project, it fails as below