Skip to content
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

Got an error after performing npm run dev #66

Closed
leonism opened this issue Dec 8, 2022 · 4 comments
Closed

Got an error after performing npm run dev #66

leonism opened this issue Dec 8, 2022 · 4 comments

Comments

@leonism
Copy link

leonism commented Dec 8, 2022

Hi everyone, I'm still new to Astro in general and came to the following issue. I downloaded the code in Zip file, extracted them and ran the following as instructed in the README.

  • npm install
  • npm run dev

And got the following error:

> @onwidget/astrowind@0.8.4 dev
> astro dev

dyld: lazy symbol binding failed: Symbol not found: _pthread_jit_write_protect_supported_np
  Referenced from: /Volumes/DATA/Astro/astrowind/node_modules/sharp/build/Release/../.././vendor/8.13.3/darwin-x64/lib/libvips-cpp.42.dylib
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _pthread_jit_write_protect_supported_np
  Referenced from: /Volumes/DATA/Astro/astrowind/node_modules/sharp/build/Release/../.././vendor/8.13.3/darwin-x64/lib/libvips-cpp.42.dylib
  Expected in: /usr/lib/libSystem.B.dylib

/var/folders/p1/k78b7zpd401fqcvhv6jx8w2r0000gn/T/dev-f33a7221.sh: line 1: 10857 Abort trap: 6           astro dev

Though it went smoothly on the previous release, wondering if anyone could point me on how to fix them.

Thanks,

@prototypa
Copy link
Contributor

Hi @leonism

What version of Node are you using? and on what platform (Linux, Mac, Windows)?

@leonism
Copy link
Author

leonism commented Dec 9, 2022

Hi @prototypa,

I'm on node v16.17.1 running on MacOS Mojave 10.14.6. While the previous version of the theme was running smoothly on my local system, but once I've downloaded the latest one, it kept giving me the above errors.

Thanks,

@leonism
Copy link
Author

leonism commented Dec 9, 2022

As it appeared couple of similar issues have been reported previously and apparently, it is a Mac OSX specific issue, rather on the theme itself. So for those of you whose coming from a Google Search and having similar issue, here's the solution that actually worked for me:

  • npm uninstall sharp and
  • npm install sharp@0.31.1

And, they're back again working as intended.

Thanks,

@leonism leonism closed this as completed Dec 9, 2022
@prototypa
Copy link
Contributor

Oh @leonism, thank you very much for that information!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants