Magento2 icon indicating copy to clipboard operation
Magento2 copied to clipboard

chmod: cannot access error

Open jayreis opened this issue 4 years ago • 7 comments

Trying to do this on a Mac to setup my local environment to develop a magento2.3.3 based website and after i run the install-magento2 command i get an error that says chmod: cannot access './var': No such file or directory chmod: cannot access './vendor': No such file or directory chmod: cannot access './pub/static': No such file or directory chmod: cannot access './pub/media': No such file or directory chmod: cannot access './app/etc': No such file or directory '/var/www/env.sample.php' -> './app/etc/env.php' cp: cannot create regular file './app/etc/env.php': No such file or directory /usr/local/bin/install-magento2: line 27: n98: command not found Could not open input file: ./bin/magento cp: cannot create regular file 'var/composer_home/auth.json': No such file or directory mv: cannot stat 'package.json.sample': No such file or directory mv: cannot stat 'Gruntfile.js.sample': No such file or directory npm WARN enoent ENOENT: no such file or directory, open '/var/www/html/package.json' npm WARN html No description npm WARN html No repository field. npm WARN html No README data npm WARN html No license field. Could not open input file: ./bin/magento I tried deleting the container and redoing it all but still come to the same issue. I confirmed i have compose and docker and docker-sync install. What else should look for?

jayreis avatar Dec 11 '19 21:12 jayreis

same here

abnava avatar May 26 '20 20:05 abnava

@abnava You will see during install that the n98 component hasn't downloaded or installed properly. Took me 3-4 install attempts to get it going. Eventually it cached everything and installed

From what i could tell it was due to my internet connection dropping out, so repeated installs eventually caches everything

If you follow the install you will see when the n98 component installs (it happens pretty quickly though)

JackWormUK avatar May 27 '20 05:05 JackWormUK

I also had this issue

vinh-smartdev avatar Jun 02 '20 02:06 vinh-smartdev

Me either!

mardcp avatar Jun 05 '20 20:06 mardcp

Me too!

ronald2wing avatar Jun 21 '20 01:06 ronald2wing

I have it too, any idea how to fix it?

vietpv94 avatar Jan 28 '21 10:01 vietpv94

  • enter your docker as root docker-compose exec apache bash
  • delete all of the files (composer and module folder)
  • do a install-magento2

reconka avatar Jun 15 '21 12:06 reconka