3

When I'm trying to deploy my node with react app using: git push heroku master, during my building dependecies stage I'm getting the error:

remote: -----> Building dependencies
remote:        Installing node modules (package.json + package-lock)
remote:        npm ERR! path /tmp/build_288e080d2a9bc89bea29b47e8a8490f5/node_modules/.staging/react-calendar-386650e2/dist
remote:        npm ERR! code EACCES
remote:        npm ERR! errno -13
remote:        npm ERR! syscall mkdir
remote:        npm ERR! Error: EACCES: permission denied, mkdir '/tmp/build_288e080d2a9bc89bea29b47e8a8490f5/node_modules/.staging/react-calendar-386650e2/dist'
remote:        npm ERR!  { Error: EACCES: permission denied, mkdir '/tmp/build_288e080d2a9bc89bea29b47e8a8490f5/node_modules/.staging/react-calendar-386650e2/dist'
remote:        npm ERR!   cause:
remote:        npm ERR!    { Error: EACCES: permission denied, mkdir '/tmp/build_288e080d2a9bc89bea29b47e8a8490f5/node_modules/.staging/react-calendar-386650e2/dist'
remote:        npm ERR!      errno: -13,
remote:        npm ERR!      code: 'EACCES',
remote:        npm ERR!      syscall: 'mkdir',
remote:        npm ERR!      path: '/tmp/build_288e080d2a9bc89bea29b47e8a8490f5/node_modules/.staging/react-calendar-386650e2/dist' },
remote:        npm ERR!   errno: -13,
remote:        npm ERR!   code: 'EACCES',
remote:        npm ERR!   syscall: 'mkdir',
remote:        npm ERR!   path: '/tmp/build_288e080d2a9bc89bea29b47e8a8490f5/node_modules/.staging/react-calendar-386650e2/dist',
remote:        npm ERR!   parent: 'adam' }
remote:        npm ERR!
remote:        npm ERR! Please try running this command again as root/Administrator.
remote:        
remote:        npm ERR! A complete log of this run can be found in:
remote:        npm ERR!     /tmp/npmcache.LqG5j/_logs/2018-08-08T21_08_07_310Z-debug.log

Running the command with sudo does not help. Maybe some of you had similar issue. Thank you!

Murakami
  • 3,474
  • 7
  • 35
  • 89

0 Answers0