I prepared the necessary thing. A project is not made in [Expo init].


#1

It is the situation of the current package.

$ npm list --depth=0 -g
├── create-react-native-app@2.0.2
├── expo-cli@2.3.8
├── npm@4.6.1
├── react-native-cli@2.0.1
└── vue-native-cli@0.0.3

node v8.9.4
npm  5.6.0

I appear in this way when I hit the command.

$ expo init MyApp
-bash: expo: command not found

Is anything still insufficient?


#2

Hey kuma3

I had the same problem . All you need to do is to upgrade your Node.js to the latest version and it will work.


#3

Thank you for advice!
But I did not get along well even if I did it.
I do version management in nodebrew, but do you put it?
I want to know the version of other packages, too if possible.

$ node -v
v11.1.0

$expo init my-new-project
-bash: expo: command not found

#4

The error suggests expo isn’t installed or your path is wrong.

At the risk of suggesting the obvious, have you tried reinstalling expo:

npm install expo-cli --global


#5

Thanks jhanley!

npm WARN registry Using stale data from https://registry.npmjs.org/ because the host is inaccessible -- are you offline?

npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.

I could not create a project even if I installed it again.
Such an instruction came out when I hit a command, does not it need me to care?


closed #6

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.