Exp command not working in linux


When i want to create android build using exp build:android then terminal
give me following error:-

exp build:android

Usage : exp [-h] [-v level] [-o outfile] [infile]

-h this help
-v verbose mode (level is 1:2:3:4)
-o define the output file (stdout by default)
infile define the input file (stdin by default)

Please someone help me to solve this problem .
Thanks in advance.

Kulbhushan Singh.



Hey Kulbhushan, it seems that you have another package with a command named exp installed that isn’t the Expo exp command-line tool. Your error looks like it’s the exp command from a package named alliance.

To fix this, please try these steps:

  1. Uninstall the other exp command: sudo apt remove alliance
  2. Install our exp tool: npm install -g exp


I try these steps but it give me following error in terminal : -

npm WARN checkPermissions Missing write access to /home/acer/lib/node_modules
npm ERR! path /home/acer/lib/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/home/acer/lib/node_modules’
npm ERR! { Error: EACCES: permission denied, access '/home/acer/lib/node_modules’
npm ERR! stack: ‘Error: EACCES: permission denied, access ‘/home/acer/lib/node_modules’’,
npm ERR! errno: -13,
npm ERR! code: ‘EACCES’,
npm ERR! syscall: ‘access’,
npm ERR! path: ‘/home/acer/lib/node_modules’ }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/acer/.npm/_logs/2018-02-27T04_32_42_661Z-debug.log

Please i don’t know how to fix it please help me to solve problem .



Hey @kulbhushansingh - could you check and see if you have npm 5 installed (npm -v) and if so, try downgrading to npm 4 (npm install -g npm@4)? If you’re able to do that, it may fix your issue.

If that doesn’t work, you could try some of the steps here: https://docs.npmjs.com/getting-started/fixing-npm-permissions

Sorry, this sounds like an annoying issue. Let us know if you’re still having trouble after trying those things!


closed #5

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