OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce Why should be a root user to run assets:install

This topic contains 2 replies, has 1 voice, and was last updated by  asmaa.tahoon25 2 years ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
  • #41250


    After I upgrade from 3.1.0-beta to 3.1.15 and try to run “php bin/console oro:assets:install –env=prod”
    I always get permission denied to create directory inside vendor
    that is the error
    { Error: EACCES: permission denied, mkdir ‘oroapp/vendor/oro/platform/build/node_modules/node-sass/vendor’
    also I get that error when I run this command using ‘sudo’ and also
    after running ‘sudo chown -R user:user /my-oro-app-path’ i get same error
    So I must be a root user to prevent that error
    Could you please help me why that happens with me and how fix it and run the command using my logged in user
    my node version is 10.16.0

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
  • #41251


    I just changed the permission of my project to be 777 and changed the user of my project by “sudo chown -R user:user /my-project-path”
    then I run that command “php bin/console oro:assets:install –env=prod” without sudo and it worked




Viewing 2 replies - 1 through 2 (of 2 total)

The forum ‘OroCommerce’ is closed to new topics and replies.

You will be redirected to [title]. Would you like to continue?

Yes No