Discussions

Ask a Question
Back to All

Error: EACCES: permission denied while creating react-viro project

I am following installation guide for linux on Ubuntu platform

https://viro-community.readme.io/docs/quick-start-maclinux

react-viro init viroapp --verbose

I am consistently getting permission errors.

==== Running Javascript Setup Script ===
Copying over HelloWorld files
Attempting to install [email protected] globally...
npm ERR! code EACCES
npm ERR! syscall rename
npm ERR! path /usr/bin/ngrok
npm ERR! dest /usr/bin/.ngrok-8l1I0RCg
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, rename '/usr/bin/ngrok' -> '/usr/bin/.ngrok-8l1I0RCg'
npm ERR!  [Error: EACCES: permission denied, rename '/usr/bin/ngrok' -> '/usr/bin/.ngrok-8l1I0RCg'] {
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'rename',
npm ERR!   path: '/usr/bin/ngrok',
npm ERR!   dest: '/usr/bin/.ngrok-8l1I0RCg'
npm ERR! }
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.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/jmanoj/.npm/_logs/2023-05-22T06_59_41_233Z-debug-0.log

!!!!!!!!!!!!!!!!! ERROR !!!!!!!!!!!!!!!!!!
Installing [email protected] globally failed
Please run the following command manually:

    npm install -g ngrok