Node.js Discussion Forums

There's no such thing as a stupid question. Ask. Discuss. Learn.

Installation expo-cli

Salut
j'essai d'installer expo-cli avec le terminal mac mais ca me renvoi une erreur ma configuration:
os mojave
node: 10.16.0
npm: 6.9.0
pouvez vous m'aidez à installer expo pour pouvoir enfin bosser avec react native parce que là ça devient compliqué avec toutes ces dépendance qui n'en finit pas,

Macintosh:~ apple$ npm install -g expo-cli
npm ERR! path /Users/apple/.npm/_cacache/index-v5/37/3f
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall mkdir
npm ERR! Error: EACCES: permission denied, mkdir '/Users/apple/.npm/_cacache/index-v5/37/3f'
npm ERR! { [Error: EACCES: permission denied, mkdir '/Users/apple/.npm/_cacache/index-v5/37/3f']
npm ERR! cause:
npm ERR! { Error: EACCES: permission denied, mkdir '/Users/apple/.npm/_cacache/index-v5/37/3f'
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/Users/apple/.npm/_cacache/index-v5/37/3f' },
npm ERR! isOperational: true,
npm ERR! stack:
npm ERR! 'Error: EACCES: permission denied, mkdir '/Users/apple/.npm/_cacache/index-v5/37/3f'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/Users/apple/.npm/_cacache/index-v5/37/3f',
npm ERR! parent: 'expo-cli' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/apple/.npm/_logs/2019-06-02T02_08_10_314Z-debug.log

Cordialement

Alpha Go 4 months ago
  • Whitelisted Links