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)
- Some aggregations do not work on Store-Api /product/{productId} HOT 2
- [Github] NEXT-00000 - Fix data-grid column ordering HOT 2
- Timing Issue in the Rule Builder HOT 2
- max_execution_time 300 in shopware-installer.phar.php set too low. HOT 2
- [Github] Add composer name to `plugin:list` output for quicker access HOT 2
- Issues with the calculation in the quote management HOT 2
- Infinite redirect/reload on the admin login page HOT 2
- [Github] Only select used fields of `translation` tables HOT 2
- Country Flags are not loaded in the frontend HOT 2
- Slow indexing on default import functionality HOT 2
- SaaS: Snippets are not loading HOT 2
- Storefront hot-proxy funktioniert nicht mit mehreren Themes/Sales Channels HOT 2
- HTTP 400 Response/"Invalid Ide provided ..." when opening media on product general tab in Admin HOT 2
- Country Flags are not loaded in the frontend HOT 2
- Errors in rendering order-dates in order-grid and order-clearance-grid HOT 2
- B2B Components / Quote Management not working HOT 2
- Search resulte variants HOT 2
- Webhook not triggered on product de-assignment from category HOT 2
- Undefined TCPDF constant caused by opcache preloading HOT 2
- Webp support for shopware store HOT 2
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.