question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't install new project on M1 Mac

See original GitHub issue

Bug Report

Dependencies fail to install. Seems to hang up and die on node-sass and/or libsass dependencies. Looks like there’s known issues with node-sass support for M1? The errors thrown aren’t particularly clear or seemingly helpful.

https://github.com/sass/node-sass/issues/3033

Possible Solution

Not sure yet, I’ve tried different versions of node (14, 16, and 18) with no difference.

Steps to Reproduce

On an M1 Mac, try to run npm i or yarn in a newly created project via create-payload-app, or npm init -y && npm i --legacy-peer-deps payload in a blank directory.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:9
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
DanRibbenscommented, May 27, 2022

Great feedback from all the others who have resolved various issues with M1 compatibility!

We’re working on removing node-sass as a dependency: https://github.com/payloadcms/payload/pull/605

2reactions
wiessoncommented, Jun 14, 2022

@DanRibbens

We’re working on removing node-sass as a dependency: https://github.com/payloadcms/payload/pull/605

~Has this already been released?~ I can confirm that the issue has been fixed with the latest release (0.18.0)

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Install Unsupported Development Software on M1 Macs
Most tools and programs will work perfectly fine on M1 architecture, but some tools require installation that won't work. In our example, running...
Read more >
Can't build to simulator on Apple Silicon
It only popped up when trying to build on my new M1 MacBook Air and Xcode 12. I've tried everything that's been reported...
Read more >
Can't open old projects on MBP M1 - Adobe Support Community
When opening previous projects (made on intel mac) I get a long list of error messages and then eventually AE crashes and nothing...
Read more >
Cocoapods won't work on new m1 mac Big Sur Xcode
You can tweak your project architecture or add the following at the very end of your Podfile (and run pod update again) :...
Read more >
How to fix “pod install” error in React Native on Mac M1
Picture this: you've finally found the time and motivation to build the next billion-dollar app with React Native on your brand-new Macbook Pro, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found