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)
- 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 2
- Icons misplaced when adjusting font size globally HOT 1
- Document generation only supports PDF files HOT 2
- Add connection profiler if "--profile" is used for CLI commands HOT 2
- You must call "setEnvironment()" before calling "Twig\\Extension\\EscaperExtension::setEscaper()". HOT 3
- Control settings "None" on image sliders don't work HOT 2
- Meta information in landing pages is not inherited HOT 3
- Custom field (image) in list view: Not displayed when on paginated pages. But displayed when force refresh paginated list-view page. HOT 2
- Shopware v.6.6 stateMachineState for delivery and payment is always = (null) HOT 2
- CMS form data is not cleared from local storage after form is submitted HOT 2
- The selection of a main variant doesn't have any effect 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.