Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runs "start" command instead of what I provide #11

Open
wkaskie opened this issue Jul 22, 2020 · 1 comment
Open

Runs "start" command instead of what I provide #11

wkaskie opened this issue Jul 22, 2020 · 1 comment

Comments

@wkaskie
Copy link

wkaskie commented Jul 22, 2020

I have a package.json set up with a "server" script. Running nodenv server triggers start instead of server/index.js.

The setup is the generic create-react-app folder. A subfolder added named server with an index.js file inside. The index.js is generic test Express app. Package.json has only been modified to include the script to run nodenv.

@dkundel
Copy link
Owner

dkundel commented Jul 30, 2020

Can you try calling explicitly nodenv server/index.js or alternatively set your "main" entry in the package.json to server/index.js?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants