ekatzenstein / create-react-app-fullstack

Use create-react-app as a full-stack tool, with Express and Sequelize (PostgreSQL)
MIT License
51 stars 13 forks source link

Doesn't play nice with nvm #2

Open mkuipers opened 7 years ago

mkuipers commented 7 years ago

I get this error when I try to run the initial setup. I suspect it's because of the shebang at the top of index.js.

My node skills are a little weak but I suspect if you remove that line and change this line to be "fullstack": "node index.js", it will work better. I'd open up a PR myself but I don't know how to get this set up and tested locally.

The error I get:

Maxs-MacBook-Pro:whos_moving_2 maxkuipers$ fullstack
-bash: /Users/maxkuipers/.nvm/versions/node/v6.2.2/bin/fullstack: /usr/local/bin/node: bad interpreter: No such file or directory
mkuipers commented 7 years ago

I symlinked /usr/local/bin/node to my installation of node for now as a fix but I don't think that should be necessary.

hariharan888 commented 7 years ago

@mkuipers is right. You should change the first line for those who installed node locally.