Trying to build Jopin in macOS m1, on dev branch
followed joplin/BUILD.md at dev · laurent22/joplin · GitHub
❯ npm install
> postinstall
> npm run bootstrap --no-ci && npm run build
> bootstrap
> lerna bootstrap --force-local --no-ci
node:internal/modules/cjs/loader:922
throw err;
^
Error: Cannot find module '@lerna/cli'
Require stack:
- /Users/felix/github/joplin/node_modules/lerna/index.js
- /Users/felix/github/joplin/node_modules/lerna/cli.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:15)
at Function.Module._load (node:internal/modules/cjs/loader:763:27)
at Module.require (node:internal/modules/cjs/loader:991:19)
at require (node:internal/modules/cjs/helpers:92:18)
at Object.<anonymous> (/Users/felix/github/joplin/node_modules/lerna/index.js:3:13)
at Module._compile (node:internal/modules/cjs/loader:1102:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1131:10)
at Module.load (node:internal/modules/cjs/loader:967:32)
at Function.Module._load (node:internal/modules/cjs/loader:807:14)
at Module.require (node:internal/modules/cjs/loader:991:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/Users/felix/github/joplin/node_modules/lerna/index.js',
'/Users/felix/github/joplin/node_modules/lerna/cli.js'
]
}
npm ERR! code 1
npm ERR! path /Users/felix/github/joplin
npm ERR! command failed
npm ERR! command sh -c lerna bootstrap --force-local --no-ci
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/felix/.npm/_logs/2021-07-22T09_24_50_9
I have tried npm install -g lerna
, then run npm install
again still get this error, wondering if anyone encountered this too?