Closed empaa closed 5 years ago
Hello @empaa !
I tried on an MacOS with last version of Strapi and it works well - probably related to Raspbian.
Can you make sure strapi-plugin-graphql
is in your dependencies (package.json
)
If it is, please try to remove your yarn.lock
and re-install your dependencies.
I found an issue that could be related to yours but on Gatsby - https://github.com/gatsbyjs/gatsby/issues/12633
@lauriejim thank you! Adding "strapi-plugin-graphql": "3.0.0-beta.16.5" to packages.json, deleting node_modules and running yarn install again results in the same error as the create command but I’m able to do yarn build and start the server afterwards with GraphQL working. It’s an ugly fix but it’s beta and hey, at least it runs now! It all works hassle free on my MacBook too, my conclusion is also that the problem lies somewhere with raspbian/arm. I found that issue on Gatsby earlier but I couldn’t figure it out since the problem is well above my knowledge but I’m happy to have a fix for now. Maybe someone more technical can find a proper solution to this later on :)
For now marking this issue as closed as it isn't likely an issue with Strapi but has something to do with rasbian.
Describe the bug The yarn create strapi-app command fails on Raspberry Pi 4 running Raspbian Lite. The installer crashes with error message related to mozjpeg module. The app can be built and started after the crash but trying to install graphql then fails due to problems with dependencies and the app want start again without removing the node_modules folder and start over without graphql.
Steps to reproduce the behavior
Expected behavior "yarn create strapi-app api" should install a new project under folder api and install dependencies without errors. "yarn strapi install graphql" should add Graphql-plugin to the project without errors. "yarn develop/build/start" should start the application after these steps have succeeded.
Screenshots If applicable, add screenshots to help explain your problem.
Code snippets Output from "yarn create strapi-app" (4):
Output of "yarn build" (5):
Output from "yarn strapi install graphql" (7):
Output "yarn develop" (8):
System
Additional context I had to manually install autoconf to get this far but I can't figure out how to proceed.