Homepage    |    GitHub    |    API    |    FAQ

Problem with application build

Windows 10
node v14.16.0

I run npm install in root folder and get next error

e:\joplin>npm install

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


> bootstrap
> 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 info Symlinking packages and binaries
lerna info lifecycle @joplin/app-clipper@1.0.8~postinstall: @joplin/app-clipper@1.0.8
lerna info lifecycle @joplin/app-desktop@1.8.1~postinstall: @joplin/app-desktop@1.8.1
lerna info lifecycle @joplin/app-mobile@0.8.9~postinstall: @joplin/app-mobile@0.8.9

> @joplin/app-clipper@1.0.8 postinstall e:\joplin\packages\app-clipper
> cd popup && npm install


> joplin-webclipper-popup@0.1.0 postinstall
> node postinstall.js && npm run build


> joplin-webclipper-popup@0.1.0 build
> node scripts/build.js SKIP_PREFLIGHT_CHECK

Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run the following command: `npm update`
Compiled successfully.

File sizes after gzip:

  48.12 KB  build\static\js\2.chunk.js
  7.52 KB   build\static\js\main.chunk.js
  775 B     build\static\js\runtime-main.js
  746 B     build\static\css\main.chunk.css

The project was built assuming it is hosted at ./.
You can control this with the homepage field in your package.json.

The build folder is ready to be deployed.

Find out more about deployment here:

  bit.ly/CRA-deploy


up to date, audited 1857 packages in 9s

28 vulnerabilities (13 low, 1 moderate, 14 high)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
lerna info lifecycle @joplin/app-clipper@1.0.8~postinstall: Failed to exec postinstall script

> @joplin/app-mobile@0.8.9 postinstall e:\joplin\packages\app-mobile
> jetify && npm run build

npm ERR! code 1
npm ERR! path e:\joplin
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c npm run bootstrap --no-ci && npm run build

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Banderlog\AppData\Local\npm-cache\_logs\2021-04-07T20_42_25_821Z-debug.log

debug.log

0 verbose cli [
0 verbose cli   'C:\\Program Files\\nodejs\\node.exe',
0 verbose cli   'C:\\Users\\Banderlog\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
0 verbose cli   'install'
0 verbose cli ]
1 info using npm@7.8.0
2 info using node@v14.16.0
3 timing npm:load:whichnode Completed in 1ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:C:\Users\Banderlog\AppData\Roaming\npm\node_modules\npm\npmrc Completed in 2ms
6 timing config:load:builtin Completed in 2ms
7 timing config:load:cli Completed in 0ms
8 timing config:load:env Completed in 1ms
9 timing config:load:file:e:\joplin\.npmrc Completed in 0ms
10 timing config:load:project Completed in 0ms
11 timing config:load:file:C:\Users\Banderlog\.npmrc Completed in 1ms
12 timing config:load:user Completed in 1ms
13 timing config:load:file:C:\Users\Banderlog\AppData\Roaming\npm\etc\npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:setEnvs Completed in 1ms
17 timing config:load Completed in 6ms
18 timing npm:load:configload Completed in 6ms
19 timing npm:load:setTitle Completed in 0ms
20 timing npm:load:setupLog Completed in 1ms
21 timing npm:load:cleanupLog Completed in 2ms
22 timing npm:load:configScope Completed in 0ms
23 timing npm:load:projectScope Completed in 1ms
24 timing npm:load Completed in 11ms
25 timing config:load:flatten Completed in 2ms
26 timing arborist:ctor Completed in 1ms
27 timing idealTree:init Completed in 403ms
28 timing idealTree:userRequests Completed in 0ms
29 silly idealTree buildDeps
30 timing idealTree:#root Completed in 0ms
31 timing idealTree:buildDeps Completed in 1ms
32 timing idealTree:fixDepFlags Completed in 0ms
33 timing idealTree Completed in 418ms
34 timing arborist:ctor Completed in 0ms
35 timing reify:loadTrees Completed in 683ms
36 timing reify:diffTrees Completed in 28ms
37 silly reify moves {}
38 timing reify:retireShallow Completed in 0ms
39 timing reify:createSparse Completed in 0ms
40 timing reify:loadBundles Completed in 0ms
41 timing reify:unpack Completed in 11ms
42 timing reify:unretire Completed in 0ms
43 timing build:queue Completed in 0ms
44 timing build:deps Completed in 0ms
45 timing build Completed in 0ms
46 timing reify:build Completed in 1ms
47 timing reify:trash Completed in 0ms
48 timing reify:save Completed in 167ms
49 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 678ms
50 timing auditReport:getReport Completed in 679ms
51 timing metavuln:cache:get:security-advisory:madge:ybdgjcpRZ4C3+Ev2az+sANhGQ801OwLa3lMb5rlCDHBTfj+p7/GCgOLaRK/eN4jDfjpn245X4/myF1a1PaFVSw== Completed in 13ms
52 timing metavuln:cache:get:security-advisory:ini:Ycq69/gaCzr/G/fbN43rDLIsHS7IdZHzW5bh0ju4uwHwvENyyzefC75bnxzsKQ1M+jh/75af+MnibiJLXd61Iw== Completed in 14ms
53 timing metavuln:cache:get:security-advisory:y18n:Ian6RpYkXrX0NfM2J0SmFvptoylamT9u5YRRPQGHHwNO82iyzBwLe1GIDh5UchRnFuscTbjMKTbo7XT9qqPckA== Completed in 12ms
54 http fetch GET 304 https://registry.npmjs.org/madge 69ms (from cache)
55 timing metavuln:packument:madge Completed in 70ms
56 timing metavuln:load:security-advisory:madge:1652 Completed in 1ms
57 timing metavuln:calculate:security-advisory:madge:1652 Completed in 71ms
58 http fetch GET 304 https://registry.npmjs.org/y18n 133ms (from cache)
59 timing metavuln:packument:y18n Completed in 133ms
60 timing metavuln:load:security-advisory:y18n:1654 Completed in 0ms
61 timing metavuln:calculate:security-advisory:y18n:1654 Completed in 133ms
62 http fetch GET 304 https://registry.npmjs.org/ini 156ms (from cache)
63 timing metavuln:packument:ini Completed in 157ms
64 timing metavuln:load:security-advisory:ini:1589 Completed in 1ms
65 timing metavuln:calculate:security-advisory:ini:1589 Completed in 158ms
66 timing metavuln:cache:get:security-advisory:global-prefix:2Y1tVIAOCQDQ7wuh0WDPOPCyHKpY0ClBm+v4U6dukj413sf6DLnn0+K5kGceXZ1HOmT7cfj8aBWZWnFE2DXNkg== Completed in 9ms
67 timing metavuln:cache:get:security-advisory:config-chain:/wNYO5/PZ/TMyocbR/sMEk6kzCih8ZU0AJ1XlupzixBTzLGJD8M0PHlE/J6IADbzOMfA50f9F8q/TNbssGAIZw== Completed in 10ms
68 timing metavuln:cache:get:security-advisory:rc:/2MFlZ/T1CPQQswjJhNhhlG4q5EG45VjjuYqMInN8sTOeP2ga8AcQhNm9qWbv2d5ZF/9iKyTNk1faKbtVHHNYg== Completed in 8ms
69 timing metavuln:cache:get:security-advisory:gitconfiglocal:7khazJ4vKK2hW1ncyF57L8iczboD0gJUlqiFJfMYVCms/v3qOfDnlKhMpXjswhm0V0Ab5u/X17WxkglTQNO3FA== Completed in 10ms
70 http fetch GET 304 https://registry.npmjs.org/config-chain 65ms (from cache)
71 timing metavuln:packument:config-chain Completed in 65ms
72 timing metavuln:load:security-advisory:config-chain:Ycq69/gaCzr/G/fbN43rDLIsHS7IdZHzW5bh0ju4uwHwvENyyzefC75bnxzsKQ1M+jh/75af+MnibiJLXd61Iw== Completed in 0ms
73 timing metavuln:calculate:security-advisory:config-chain:Ycq69/gaCzr/G/fbN43rDLIsHS7IdZHzW5bh0ju4uwHwvENyyzefC75bnxzsKQ1M+jh/75af+MnibiJLXd61Iw== Completed in 65ms
74 http fetch GET 304 https://registry.npmjs.org/gitconfiglocal 69ms (from cache)
75 timing metavuln:packument:gitconfiglocal Completed in 70ms
76 timing metavuln:load:security-advisory:gitconfiglocal:Ycq69/gaCzr/G/fbN43rDLIsHS7IdZHzW5bh0ju4uwHwvENyyzefC75bnxzsKQ1M+jh/75af+MnibiJLXd61Iw== Completed in 0ms
77 timing metavuln:calculate:security-advisory:gitconfiglocal:Ycq69/gaCzr/G/fbN43rDLIsHS7IdZHzW5bh0ju4uwHwvENyyzefC75bnxzsKQ1M+jh/75af+MnibiJLXd61Iw== Completed in 70ms
78 http fetch GET 304 https://registry.npmjs.org/rc 75ms (from cache)
79 timing metavuln:packument:rc Completed in 75ms
80 timing metavuln:load:security-advisory:rc:Ycq69/gaCzr/G/fbN43rDLIsHS7IdZHzW5bh0ju4uwHwvENyyzefC75bnxzsKQ1M+jh/75af+MnibiJLXd61Iw== Completed in 0ms
81 timing metavuln:calculate:security-advisory:rc:Ycq69/gaCzr/G/fbN43rDLIsHS7IdZHzW5bh0ju4uwHwvENyyzefC75bnxzsKQ1M+jh/75af+MnibiJLXd61Iw== Completed in 75ms
82 http fetch GET 304 https://registry.npmjs.org/global-prefix 149ms (from cache)
83 timing metavuln:packument:global-prefix Completed in 149ms
84 timing metavuln:load:security-advisory:global-prefix:Ycq69/gaCzr/G/fbN43rDLIsHS7IdZHzW5bh0ju4uwHwvENyyzefC75bnxzsKQ1M+jh/75af+MnibiJLXd61Iw== Completed in 0ms
85 timing metavuln:calculate:security-advisory:global-prefix:Ycq69/gaCzr/G/fbN43rDLIsHS7IdZHzW5bh0ju4uwHwvENyyzefC75bnxzsKQ1M+jh/75af+MnibiJLXd61Iw== Completed in 149ms
86 timing metavuln:cache:get:security-advisory:yargs:R/6feHD3xFXG53yNEkBqvytp0gJ+mxyobPp+C8JyQ4Q7QSXJo2oYIn3cL4mAUFqhOheYH/cIiAMAWSsaTgoLgQ== Completed in 7ms
87 timing metavuln:cache:get:security-advisory:cacache:9x65bnNSMfoZL05BhLFaYX1SxPhsEUi4GuUbpMlILmjl3Yg7V3oo8CWUU8kZ/FA2GXJavA7BriiW/mpYds7XCA== Completed in 7ms
88 http fetch GET 304 https://registry.npmjs.org/cacache 77ms (from cache)
89 timing metavuln:packument:cacache Completed in 78ms
90 timing metavuln:load:security-advisory:cacache:Ian6RpYkXrX0NfM2J0SmFvptoylamT9u5YRRPQGHHwNO82iyzBwLe1GIDh5UchRnFuscTbjMKTbo7XT9qqPckA== Completed in 0ms
91 timing metavuln:calculate:security-advisory:cacache:Ian6RpYkXrX0NfM2J0SmFvptoylamT9u5YRRPQGHHwNO82iyzBwLe1GIDh5UchRnFuscTbjMKTbo7XT9qqPckA== Completed in 79ms
92 http fetch GET 304 https://registry.npmjs.org/yargs 102ms (from cache)
93 timing metavuln:packument:yargs Completed in 104ms
94 timing metavuln:load:security-advisory:yargs:Ian6RpYkXrX0NfM2J0SmFvptoylamT9u5YRRPQGHHwNO82iyzBwLe1GIDh5UchRnFuscTbjMKTbo7XT9qqPckA== Completed in 2ms
95 timing metavuln:calculate:security-advisory:yargs:Ian6RpYkXrX0NfM2J0SmFvptoylamT9u5YRRPQGHHwNO82iyzBwLe1GIDh5UchRnFuscTbjMKTbo7XT9qqPckA== Completed in 106ms
96 timing auditReport:init Completed in 415ms
97 timing reify:audit Completed in 1096ms
98 timing reify Completed in 1816ms
99 timing command:install Completed in 18966ms
100 verbose stack Error: command failed
100 verbose stack     at ChildProcess.<anonymous> (C:\Users\Banderlog\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\promise-spawn\index.js:64:27)
100 verbose stack     at ChildProcess.emit (events.js:315:20)
100 verbose stack     at maybeClose (internal/child_process.js:1048:16)
100 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
101 verbose cwd e:\joplin
102 verbose Windows_NT 10.0.19042
103 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Banderlog\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
104 verbose node v14.16.0
105 verbose npm  v7.8.0
106 error code 1
107 error path e:\joplin
108 error command failed
109 error command C:\Windows\system32\cmd.exe /d /s /c npm run bootstrap --no-ci && npm run build
110 verbose exit 1

Please help me to understand what happens and how to fix it.

Are you sure you've posted the full output? (Not the debug log)
Also, try with node 12.

I had to downgrade npm from 7.x to 6.x

Yes, it is full. You can see it start with "npm install" command. But this is second attempt and part of packages already installed. First time was same thing.

Thank you. Now it work correctly.