Can't build Joplin in Ubuntu 20.04 using npm install

I have just write npm install from joplin directory inside terminal.

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'
lerna ERR! npm install stdout:

> keytar@7.0.0 install /media/kunal/KUNAL KUMAR/CSE & CODING/Open Source Contribution/joplin/packages/app-cli/node_modules/keytar
> prebuild-install || node-gyp rebuild

make: Entering directory '/media/kunal/KUNAL KUMAR/CSE & CODING/Open Source Contribution/joplin/packages/app-cli/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-cli/node_modules/keytar/build'

lerna ERR! npm install stderr:
prebuild-install WARN install No prebuilt binaries found (target=14.16.1 runtime=node arch=x64 libc= platform=linux)
/bin/sh: 1: CODING/Open: 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/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Linux 5.8.0-50-generic
gyp ERR! command "/usr/bin/node" "/usr/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-cli/node_modules/keytar
gyp ERR! node -v v14.16.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok 
g++: error: KUMAR/CSE: No such file or directory
g++: fatal error: no input files
compilation terminated.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (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/jest-haste-map/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 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-07T06_02_27_622Z-debug.log

lerna ERR! npm install exited 1 in 'joplin'
lerna WARN complete Waiting for 6 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-07T06_02_27_740Z-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-07T06_02_28_652Z-debug.log

Looks like it can't handle spaces in the path:

g++: error: KUMAR/CSE: No such file or directory
1 Like