create-react-app-fullstack icon indicating copy to clipboard operation
create-react-app-fullstack copied to clipboard

Doesn't play nice with nvm

Open mkuipers opened this issue 8 years ago • 2 comments

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 avatar May 07 '17 21:05 mkuipers

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.

mkuipers avatar May 07 '17 21:05 mkuipers

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

hariharan888 avatar Aug 09 '17 07:08 hariharan888