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.

Linux Arm64 npm run init fails

See original GitHub issue

Running npm run init fails and gives an error on Manjaro Arm64

npm run init

> brave@1.23.32 init
> node ./scripts/init.js

Performing initial checkout of brave-core
Cloning brave-core [undefined] into /home/corey/Stuff/brave-browser/src/brave...
-------------------------------------------------------------------------------
/home/corey/Stuff/brave-browser/src/brave
> git clone  .

fatal: repository 'undefined' does not exist

npm ERR! code 1
npm ERR! path /home/corey/Stuff/brave-browser
npm ERR! command failed
npm ERR! command sh -c node ./scripts/init.js

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/corey/.npm/_logs/2021-03-11T06_26_49_392Z-debug.log
[corey@manjaro-pi brave-browser]$ npm install

up to date, audited 29 packages in 8s

found 0 vulnerabilities
[corey@manjaro-pi brave-browser]$ npm run init

> brave@1.23.32 init
> node ./scripts/init.js

Performing initial checkout of brave-core
Cloning brave-core [undefined] into /home/corey/Stuff/brave-browser/src/brave...
node:internal/fs/utils:323
    throw err;
    ^

Error: EEXIST: file already exists, mkdir '/home/corey/Stuff/brave-browser/src/brave'
    at Object.mkdirSync (node:fs:1024:3)
    at Object.<anonymous> (/home/corey/Stuff/brave-browser/scripts/init.js:19:6)
    at Module._compile (node:internal/modules/cjs/loader:1092:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1121:10)
    at Module.load (node:internal/modules/cjs/loader:972:32)
    at Function.Module._load (node:internal/modules/cjs/loader:813:14)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
    at node:internal/main/run_main_module:17:47 {
  errno: -17,
  syscall: 'mkdir',
  code: 'EEXIST',
  path: '/home/corey/Stuff/brave-browser/src/brave'
}
npm ERR! code 1
npm ERR! path /home/corey/Stuff/brave-browser
npm ERR! command failed
npm ERR! command sh -c node ./scripts/init.js

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/corey/.npm/_logs/2021-03-11T06_31_43_841Z-debug.log

Brave version (brave://version info)

Brave version: 1.23.32

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
bscliftoncommented, Nov 12, 2021

Thanks for the report @coreybruce 😄 I’m de-duping reports of this issue and have it tracked with https://github.com/brave/brave-browser/issues/19398 in case you wanted to subscribe 😄

1reaction
mihaiplesacommented, Nov 11, 2021

@coreybruce things should be in a better place now and we’re also looking at upgrading to newer node and npm.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Npm run init fails - linux - Developers - Brave Community
npm version 14.17.2 node 6.14.13. I have tried pulling the 1.26.x branch and also the latest branch. npm install - worked ok npm...
Read more >
npm install hangs - node.js - Stack Overflow
When I was running npm i it was getting stuck in random dependencies. This actually works for me, do you know why this...
Read more >
electron - npm
Start using electron in your project by running `npm i electron`. ... Each Electron release provides binaries for macOS, Windows, and Linux.
Read more >
Installing - Cypress Documentation
This will install Cypress locally as a dev dependency for your project. Make sure that you have already run npm init or have...
Read more >
Npm install command failing with message "could not find ...
I was following the project setup. When I run the npm install command, npm starts downloading the dependencies. But then, suddenly, it stops ......
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