Homepage    |    GitHub    |    API    |    Wiki    |    FAQ

Npm build error on MacOS ARM

Followed the steps exactly as in BUILD.md

Specs:-

  • node version:-v17.0.1
  • OS version:- v12.0.1(Monterey)
    cocoapods is also installed

Error:-

pawbud@PawBuddy joplin % npm i

> postinstall
> npm run bootstrap --no-ci && npm run build


> bootstrap
> lerna bootstrap --force-local --no-ci

lerna notice cli v3.22.1
lerna info versioning independent
lerna info Bootstrapping 16 packages
lerna info Installing external dependencies
lerna ERR! npm install exited 190 in '@joplin/lib'
lerna ERR! npm install stderr:
npm ERR! code ENOTEMPTY
npm ERR! syscall rename
npm ERR! path /Users/pawbud/Desktop/code/joplin/packages/lib/node_modules/fstream
npm ERR! dest /Users/pawbud/Desktop/code/joplin/packages/lib/node_modules/.fstream-81lt27sg
npm ERR! errno -66
npm ERR! ENOTEMPTY: directory not empty, rename '/Users/pawbud/Desktop/code/joplin/packages/lib/node_modules/fstream' -> '/Users/pawbud/Desktop/code/joplin/packages/lib/node_modules/.fstream-81lt27sg'

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/pawbud/.npm/_logs/2021-11-06T07_07_42_224Z-debug.log

lerna ERR! npm install exited 190 in '@joplin/lib'
lerna WARN complete Waiting for 5 child processes to exit. CTRL-C to exit immediately.
npm ERR! code 190
npm ERR! path /Users/pawbud/Desktop/code/joplin
npm ERR! command failed
npm ERR! command sh -c npm run bootstrap --no-ci && npm run build

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/pawbud/.npm/_logs/2021-11-06T07_07_42_283Z-debug.log

Methods that I have tried:-
https://stackoverflow.com/questions/35528425/enotempty-directory-not-empty-rename-javascript-npm-ubuntu-serve/38641493

I'm not a developer, but I think that there are some problems with some versions of NPM.
Maybe that's your case. Embedded malware in coa · GHSA-73qr-pfmq-6rp8 · GitHub Advisory Database · GitHub

Yeah, I thought of that too see here

1 Like

Although TBH that issue was informed on 2016, I doubt that no1 has resolved it

1 Like