Search code examples
linuxnpmcommandexpoyarnpkg

I'm getting 'Command not found' when i try to download expo in Ubuntu(Linux)


npm install error

yarn install error

I keep getting errors whenever i try to download expo in the terminal globally for both npm and yarn. For yarn it installs but isn't downloaded when i check with expo --version


Solution

  • It looks like you're running into permission issues. If you are installing npm-packages then it might possible that you are getting an EACCES error when trying to install a package globally. This means you do not have permission to write to the directories npm uses to store global packages and commands.

    Please follow this thread:

    Error: EACCES: permission denied, access '/usr/local/lib/node_modules'