Remove `deep-freeze-node` dependency: the project is no longer installable on mac arm
See original GitHub issueI can’t install the project. Steps to reproduce the issue:
git clone git@github.com:brave/brave-browser.git
cd brave-browser
npm install
cd src
rm -rf brave # otherwise error "directory already exists", BTW that should be mentioned in the doc
cd ..
npm run init
And I get:
fatal: repository 'undefined' does not exist
It seems the function getNPMConfig
relies on env vars that are obviously not present on my system. But there is no mention about it in the Brave installation procedure.
What’s wrong here?
Just in case, I mention that I’m on macOS 10.14.6 (Mojave).
Issue Analytics
- State:
- Created 3 years ago
- Comments:52 (10 by maintainers)
Top Results From Across the Web
Install and uninstall apps from the internet or a disc on Mac
On your Mac, download and install apps from the internet or a disc. If you no longer want an app, remove it.
Read more >Visual Studio 2022 for Mac v17.5 Preview - Release Notes
Fixes in this release include: Acquisition. Updater not removing preview .NET SDKs; Unnecessary Xamarin dependencies required for MAUI workloads ...
Read more >How to Install Maven on Mac OS - DigitalOcean
Install Maven on Mac. Maven is the most widely used build and project dependency management tool for Java-based applications. We can install ......
Read more >How to run CocoaPods on Apple Silicon (M1) - Stack Overflow
0 or more with gem info ethon , otherwise run sudo gem install ethon; Run pod install. Ruby won't come with future macOS...
Read more >Release notes for macOS - Zoom Support
Disabled by default, this option allows admins to disable the use and ... If a Whiteboard project is no longer needed, it can...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I also encountered the same issue. Problem is that the path to the repository url is broken.
There is a string replacement that is making
-
into_
at https://github.com/brave/brave-browser/blob/master/lib/util.js#L5So when brave-browser goes looking for
brave-core
in package.json, it can never find it because the key is changed tobrave_core
and it ends upundefined
You can change it to
brave_core
in https://github.com/brave/brave-browser/blob/master/package.json#L38That fixes it there, but then it breaks in brave-core which has its own
getNPMConfig
that does not do the same string replacement to change-
. So it scans forbrave-core
but never finds it because it isbrave_core
now.You can then change at https://github.com/brave/brave-core/blob/master/build/commands/lib/config.js#L77
brave-core
tobrave_core
so when it scans for the repo url it can find it because it is nowbrave_core
in brave-browser/package.json.Then change the repo url and branch name to point to the brave-core version that has this change:
I was able to install using these steps, but it’s a patch job and should probably have a real fix instead.
I agree that all the setup instructions should be together so we’ll reorganize things a little bit