Can't install bootstrap peer dependencies in ubuntu 20.04

I have run npm install from my joplin directory.

> root@ postinstall /media/kunal/KUNAL_KUMAR/CSE_&_CODING/Open_Source_Contribution/joplin
> npm run bootstrap --no-ci && npm run build


> root@ bootstrap /media/kunal/KUNAL_KUMAR/CSE_&_CODING/Open_Source_Contribution/joplin
> lerna bootstrap --no-ci

lerna notice cli v3.22.1
lerna info versioning independent
lerna info Bootstrapping 15 packages
lerna info Installing external dependencies
lerna ERR! npm install exited 1 in '@joplin/app-mobile'
lerna ERR! npm install stderr:
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://npm.community>

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/kunal/.npm/_logs/2021-05-07T13_12_18_330Z-debug.log

lerna ERR! npm install exited 1 in '@joplin/app-mobile'
lerna WARN complete Waiting for 7 child processes to exit. CTRL-C to exit immediately.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! root@ bootstrap: `lerna bootstrap --no-ci`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the root@ bootstrap script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/kunal/.npm/_logs/2021-05-07T13_12_22_247Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! root@ postinstall: `npm run bootstrap --no-ci && npm run build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the root@ postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/kunal/.npm/_logs/2021-05-07T13_12_26_366Z-debug.log

What are node & npm versions? I think some versions have compatibility problems. Node v12 & npm 6 should work.

These are the specs.
npm version : 6.14.12
node version : 14.16.1

Try node 12

There's nothing immediately obvious in that error log.

:arrow_right: Deleted node modules and package.json and run npm install again
:arrow_right: installed node v12 using n package in ubuntu 20.04.

> root@ bootstrap /media/kunal/KUNAL_KUMAR/CSE_&_CODING/Open_Source_Contribution/joplin
> lerna bootstrap --no-ci

lerna notice cli v3.22.1
lerna info versioning independent
lerna info Bootstrapping 15 packages
lerna info Installing external dependencies
lerna ERR! npm install exited 1 in '@joplin/app-desktop'
lerna ERR! npm install stdout:

> keytar@7.0.0 install /media/kunal/KUNAL_KUMAR/CSE_&_CODING/Open_Source_Contribution/joplin/packages/app-desktop/node_modules/keytar
> prebuild-install || node-gyp rebuild

make: Entering directory '/media/kunal/KUNAL_KUMAR/CSE_&_CODING/Open_Source_Contribution/joplin/packages/app-desktop/node_modules/keytar/build'
  CXX(target) Release/obj.target/keytar/src/async.o
make: Leaving directory '/media/kunal/KUNAL_KUMAR/CSE_&_CODING/Open_Source_Contribution/joplin/packages/app-desktop/node_modules/keytar/build'

lerna ERR! npm install stderr:
prebuild-install WARN install No prebuilt binaries found (target=12.22.1 runtime=node arch=x64 libc= platform=linux)
/bin/sh: 1: _CODING/Open_Source_Contribution/joplin/packages/app-desktop/node_modules/node-addon-api: not found
make: *** [keytar.target.mk:117: Release/obj.target/keytar/src/async.o] Error 127
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:314:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Linux 5.8.0-50-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /media/kunal/KUNAL_KUMAR/CSE_&_CODING/Open_Source_Contribution/joplin/packages/app-desktop/node_modules/keytar
gyp ERR! node -v v12.22.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok 
g++: fatal error: no input files
compilation terminated.
npm WARN ajv-keywords@3.5.2 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN react-test-renderer@16.14.0 requires a peer of react@^16.14.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-win@2.2.0 (node_modules/7zip-bin-win):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 7zip-bin-win@2.2.0: wanted {"os":"win32","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-mac@1.0.1 (node_modules/7zip-bin-mac):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 7zip-bin-mac@1.0.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules/glob-watcher/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.2.1 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.2.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/babel-cli/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! keytar@7.0.0 install: `prebuild-install || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the keytar@7.0.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/kunal/.npm/_logs/2021-05-08T11_12_00_014Z-debug.log

lerna ERR! npm install exited 1 in '@joplin/app-desktop'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! root@ bootstrap: `lerna bootstrap --no-ci`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the root@ bootstrap script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/kunal/.npm/_logs/2021-05-08T11_12_06_993Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! root@ postinstall: `npm run bootstrap --no-ci && npm run build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the root@ postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/kunal/.npm/_logs/2021-05-08T11_12_20_073Z-debug.log

From this line it looks like it now can't handle the & symbol.

1 Like