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 shopware.
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 shopware.
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 shopware.
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 shopware.
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 shopware.
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 shopware.
Related Issues (20)
- Many many deprecation warnings on `console system:install --basic-setup HOT 1
- TestMessageHandler missing from dist HOT 2
- Migration1706272837UpdateProductExportForeignKey fails because of incorrect SQL-Syntax HOT 6
- Unable to install v6.6-rc1 and rc2: Attempted to load class "HttpKernel" from namespace "Shopware\Core" HOT 17
- Cannot load resource "/var/www/html/custom/plugins/xxx/src/Storefront/Controller/AbstractPaymentController.php". Make sure there is a loader supporting the "annotation" type. HOT 3
- Invalid RegEx in DefinitionValidator HOT 2
- TypeError: _filter_date is not a function HOT 14
- shopware/administration: auto token refresh fails when tab is heavily throttled by chrome, causing logout HOT 1
- 6.6-rc2 : App name with underscore symbol and storefront js can't be build successfully. Theme compilation error 'directory does not exist' HOT 4
- Wrong currency on past order view in account HOT 1
- attribute instead of annotation HOT 3
- twig-bridge / twig-bundle in latest 6.5 still Symfony 6.3 and not 6.4? HOT 1
- deprecated code HOT 2
- Twig map filter can not use key HOT 4
- deprecated code ->setParameters( HOT 1
- `product_version_id` is not nullable in the `OrderLineItem` definition, but is `null` after deleting a product HOT 1
- Category sorting wrong if multiple categories has same after_category_id HOT 1
- 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
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 shopware.