-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install error on npm 7 #1639
Comments
I'm also having issues installing parse-server from NPM. I get dependancy errors and I can't install it |
I am having same problem right now ! |
Can you try ignore scripts flag on install? npm install --ignore-scripts |
Just tried it and it failed too
|
I too, get the same error as @siempay. Replication:
|
As previously discussed, this only happens on the latest version of npm on certain devices. I solved by downgrading npm to 6.14.10. |
resolved with yarn add parse-dashboard --save. Maybe it will help others. graphql warning still there. |
Hi all, this still happens. Current npm LTS is 7.20.6, and for most users it's not feasible to downgrade.. Could this problem be fixed? |
There is another issue (which I can't find now) that has been opened regarding this. It seems to be an issue with the graphql dependency and npm 7 compatibility. We have an open PR to upgrade the dependency, which probably will solve this issue. The PR is a major version upgrade, so it requires some refactoring, that's why it is not merged yet. It would be great if someone could look into this. |
Probably #1633 ? Yeah I've seen the PR, and I even used that branch locally to ease my development, seems to work - of course it would need rigorous testing though. I mainly commented here in hopes the problem gets picked up, as someone mentioned it's really a bad first hands-on experience for a developer; I know it has been for me. I struggled a lot and ended up finding a fork on npmjs that ""works"", but if my company hadn't decided to use Parse, I know I'd have jumped ship to Firebase. |
@0biWanKenobi Thanks for sharing your concern. I agree that this is something we should fix ASAP, also since npm 6 is already considered "legacy" by node. Would you be willing to take a look at the PR and try to update to the next version of the GraphQL dependency? As far as I remember, the alternative solution would be to remove the GraphQL playground from the dashboard, because I think that is the only feature that requires the GraphQL package. That would of course be a drastic step for people who use that feature, but if we can't get it to work otherwise, it may be the only way forward. |
Yeah ideally I'd love to, but work hours don't leave much free time 😞 If someone can pick this up, it would be awesome |
My rather odd solution to this is:
Yarn can install fine, and once Not sure if there are any unknown side effects. Seems to be working fine for the time being. |
This issue was mainly caused by If you use the GraphQL playground in Parse Dashboard, you'll notice that it has been changed in v3.1.0. All install issues on npm v7 should be resolved in v3.1.0. Please let us know if you have installation issues with v3.1.0, or any issues with the new GraphQL playground. |
Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Dashboard!
You're running version >=1.0.23 of Parse Dashboard.
You're running version >=2.3.2 of Parse Server.
You've searched through existing issues. Chances are that your issue has been reported or resolved before.
Environment Setup
ubuntu18
node 14
npm 6
Steps to reproduce
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! [email protected] postinstall:
node -e "try{require('./postinstall')}catch(e){}"
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Logs/Trace
Note: If you get a browser JS error please run
npm run dev
. This will provide source maps and a much more useful stack trace.The text was updated successfully, but these errors were encountered: