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.

Remove `deep-freeze-node` dependency: the project is no longer installable on mac arm

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:52 (10 by maintainers)

github_iconTop GitHub Comments

6reactions
Aragar199commented, Jan 19, 2021

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#L5

So when brave-browser goes looking for brave-core in package.json, it can never find it because the key is changed to brave_core and it ends up undefined

You can change it to brave_core in https://github.com/brave/brave-browser/blob/master/package.json#L38

That 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 for brave-core but never finds it because it is brave_core now.

You can then change at https://github.com/brave/brave-core/blob/master/build/commands/lib/config.js#L77 brave-core to brave_core so when it scans for the repo url it can find it because it is now brave_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:

Screen Shot 2021-01-19 at 8 45 30 AM

I was able to install using these steps, but it’s a patch job and should probably have a real fix instead.

3reactions
bridivercommented, Feb 22, 2021

I agree that all the setup instructions should be together so we’ll reorganize things a little bit

On Feb 22, 2021, at 12:14 AM, Brian Clifton notifications@github.com wrote:

@Kwadz there’s only a different procedure if you make edits to the code. Everyone has read access to the repo, but creating branches on the remote and pushing to the remote is limited to employees

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

Read more comments on GitHub >

github_iconTop 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 >

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