EvanBacon / Lego-Expo

Play with Lego bricks anywhere using Expo

Home Page:https://ldr.netlify.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

-bash: expo: command not found

alagukannanKumaresan opened this issue · comments

Dear Evan,

After cloned and installed npm when I run the command expo start --web in Terminal, I am getting error like expo command not found.

In package.json the scripts are like this:

  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web",
    "build": "expo build:web",
    "eject": "expo eject",
    "test": "jest --watchAll",
    "update-webpack-config": "cp -r ../../expo-cli/packages/webpack-config/ node_modules/\\@expo/webpack-config/",
    "deploy": "netlify deploy --prod --dir web-build"
  },

What I'm doing wrong here? Pls suggest. Thank you in Advance!

Sorry it was a Permission issue.

Issue resolved by adding,
mkdir /.npm-global
npm config set prefix '
/.npm-global'
export PATH=~/.npm-global/bin:$PATH

Thank you :)