Comments (6)
The error is fixed now.
Don't run any ./psh.phar
scripts using sudo
. Otherwise the permissions for node_modules
are invalid.
All scripts must work without sudo. If docker:start
does not work without sudo
, make sure your user is in the system's docker
group.
from platform.
Are you using a local setup or do you use docker?
What permissions are set on the node_modules folder? And are there any other node modules already installed when it crashes?
You definitley need write permissions to the node_modules folder, do you use a different user for running the install command that doesn't has the write permissions?
from platform.
Some more precise information:
- I'm running the installation with Docker
- The
node_modules
directory has the permissionsrwx/r-x/r-x
and is owned by root - There are modules in the folder, but I'm not sure if they were created during the install
- I'm running
./psh.phar install
as root in the container (after accessing it with./psh.phar docker:ssh
) - I started the Docker daemon via
sudo dockerd
from platform.
node_modules
should not be owned by root. Did you run ./psh.phar docker:ssh
as root?
To fix the permissions for your current user, run this with your development directory:
sudo find $DEVELOPMENT_DIR -not -user "$(id -u)" -and -not -user 999 -exec chown "$(id -u):$(id -g)" {} \;
This command changes the ownership of all files and directories that are not owned by your current user (id -u
) or 999 (uid of the mysql user in the container) to your current user.
from platform.
Did you run ./psh.phar docker:ssh as root?
Yes. The reason is that otherwise (logged in as application
), I don't have permissions to some composer directories:
[ErrorException] copy(./composer/cache/files/composer/xdebug-handler/...): failed to open stream: Permission denied
However, it seems that running ./psh.phar docker:ssh
without sudo
is the way to go...
from platform.
It seems like your ~/.composer
and maybe your ~/.npm
directory is owned by root. ./psh.phar docker:start
should check that and fail if that's not the case.
from platform.
Related Issues (20)
- Accessibility issue product detail page - gallery zoom modal not closing when pressing ESC HOT 2
- Accessibility issue - menu is not accessible HOT 1
- CmsBlock Gallery JavaScript error when zoom feature is selected HOT 1
- Frontend: Quotes of font names are missing from --bs-body-font-family in all.css HOT 1
- Ensure compatibility with newer libxml2 versions on linux/wsl2 distributions HOT 9
- Gallery dots option is saved as "Keine" or "None" in english. So dots navigation can not be hidden. HOT 2
- cannot set price custom field type directly (without opening "Currency dependent pricing" modal)
- CmsBlock and CmsElement computed, @input and @change not working HOT 3
- Installer french translation yaml file is broken HOT 1
- watch storefront doesn't work correctly HOT 4
- Installer does not accept existing database (does not detect fresh install from console) HOT 1
- ProductIndexer run out of memory in case of over 5.000 variants HOT 2
- Original cart deliveries are changed in DeliveryProcessor HOT 1
- Storefront listing plugin onpopstate event is triggered by anchor "jump" links HOT 1
- CartLoadRoute is called with unauthenticated SalesChannelContext via CacheResponseSubscriber after LoginRoute HOT 4
- Cart is lost after logging in again HOT 4
- Shopware6 not installing in Cpanel server. HOT 2
- App script macros return Twig\Markup instance instead of actual return value HOT 2
- Regression - Can't login if sales domain has custom paths - Unable to find a matching sales channel for the request HOT 3
- Icons misplaced when adjusting font size globally HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from platform.