LunatiqueCoder / luna

Luna - a React Native + Next.js template. Built with TypeScript :heart:
https://luna-gamma.vercel.app/
MIT License
264 stars 17 forks source link

yarn create luna-app fails #88

Closed alariej closed 1 year ago

alariej commented 1 year ago

Describe the bug yarn create luna-app fails with the following error: error Cannot create "/usr/local/bin/create-luna-app" due to insufficient permissions.

I then ran yarn config set prefix ~/.local to tame the error, which makes yarn create luna-app apparently succeed. The terminal shows:

success Installed "create-luna-app@3.0.3" with binaries:

But mylunaapp is nowhere to be found on the machine :-(

I'm already building react-native apps on this machine.

Am I missing something obvious?

Desktop (please complete the following information):

alariej commented 1 year ago

I had node.js installed as a snap package. Will never do that again. It screws up npx create-react-app as well. I re-installed node with nvm and now everything works fine.

LunatiqueCoder commented 1 year ago

How! Happy you figured it out fast. Let me know if you need help setting up expo-router and Next.js app folders together.