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.
even after downgrading npm to 6.x, I am getting errors can some help!
npm install
> husky@3.1.0 install C:\Users\Abhishek\Desktop\joplin\node_modules\husky
> node husky install
husky > Setting up git hooks
husky > Done
> husky@3.1.0 postinstall C:\Users\Abhishek\Desktop\joplin\node_modules\husky
> opencollective-postinstall || exit 0
Thank you for using husky!
If you rely on this package, please consider supporting our open collective:
> https://opencollective.com/husky/donate
> root@ postinstall C:\Users\Abhishek\Desktop\joplin
> npm run bootstrap --no-ci && npm run build
> root@ bootstrap C:\Users\Abhishek\Desktop\joplin
> lerna bootstrap --force-local --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/renderer'
lerna ERR! npm install stderr:
npm ERR! code 1
npm ERR! Command failed: git submodule update -q --init --recursive
npm ERR! C:/Program Files/Git/mingw64/libexec/git-core\git-submodule: line 22: .
: git-sh-setup: file not found
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Abhishek\AppData\Roaming\npm-cache\_logs\2021-05-19T10_53_
22_906Z-debug.log
lerna ERR! npm install exited 1 in '@joplin/renderer'
lerna WARN complete Waiting for 7 child processes to exit. CTRL-C to exit immedi
ately.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! root@ bootstrap: `lerna bootstrap --force-local --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 log
ging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Abhishek\AppData\Roaming\npm-cache\_logs\2021-05-19T10_53_
25_013Z-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 log
ging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Abhishek\AppData\Roaming\npm-cache\_logs\2021-05-19T10_53_
26_207Z-debug.log
Looks to be an issue with your git installation.
Also next time please wrap logs in 3 backticks so that it's easier to read
ok sir, after fixing git this is the error i am facing from entire day, please help me out.
> root@ bootstrap C:\Users\Abhishek\Desktop\joplin
> lerna bootstrap --force-local --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 C:\Users\Abhishek\Desktop\joplin\packages\app-cli\node_modules\keytar
> prebuild-install || node-gyp rebuild
C:\Users\Abhishek\Desktop\joplin\packages\app-cli\node_modules\keytar>if not defined npm_config_node_gyp (node "C:\Users\Abhishek\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\Abhishek\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
lerna ERR! npm install stderr:
prebuild-install WARN install No prebuilt binaries found (target=14.3.0 runtime=node arch=x64 libc= platform=win32)
gyp ERR! find VS
gyp ERR! find VS msvs_version was set from command line or npm config
gyp ERR! find VS - looking for Visual Studio version 2015
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS valid versions for msvs_version:
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the "Desktop development with C++" workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
gyp ERR! find VS
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Visual Studio installation to use
gyp ERR! stack at VisualStudioFinder.fail (C:\Users\Abhishek\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
gyp ERR! stack at C:\Users\Abhishek\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16
gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Users\Abhishek\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:351:14)
gyp ERR! stack at C:\Users\Abhishek\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:70:14
gyp ERR! stack at C:\Users\Abhishek\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:372:16
gyp ERR! stack at C:\Users\Abhishek\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
gyp ERR! stack at C:\Users\Abhishek\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
gyp ERR! stack at ChildProcess.exithandler (child_process.js:310:5)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at maybeClose (internal/child_process.js:1051:16)
gyp ERR! System Windows_NT 10.0.19042
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Abhishek\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Abhishek\Desktop\joplin\packages\app-cli\node_modules\keytar
gyp ERR! node -v v14.3.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
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":"win32","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":"win32","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! C:\Users\Abhishek\AppData\Roaming\npm-cache\_logs\2021-05-19T11_32_06_582Z-debug.log
lerna ERR! npm install exited 1 in 'joplin'
lerna WARN complete Waiting for 3 child processes to exit. CTRL-C to exit immediately.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! root@ bootstrap: `lerna bootstrap --force-local --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! C:\Users\Abhishek\AppData\Roaming\npm-cache\_logs\2021-05-19T11_32_06_721Z-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.```
Have you followed the steps in joplin/BUILD.md at dev · laurent22/joplin · GitHub ?
In particular this one
Windows: Install Windows Build Tools - npm install -g windows-build-tools --vs2015
yes i tried all listed methods
Well looks like it didn't install successfully, maybe try reinstalling
Also have a look at the build troubleshooting file, in particular the section about Windows: Desktop application | Joplin
I tried that too, I have installed the build-tools and also the environment variables are set correctly even i installing node-gyp -g, still i am facing this errors
> npm run bootstrap --no-ci && npm run build
> root@ bootstrap C:\Users\Abhishek\Desktop\joplin
> lerna bootstrap --force-local --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/server'
lerna ERR! npm install stdout:
> sqlite3@4.1.0 install C:\Users\Abhishek\Desktop\joplin\packages\server\node_modules\sqlite3
> node-pre-gyp install --fallback-to-build
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\Abhishek\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build
--module=C:\Users\Abhishek\Desktop\joplin\packages\server\node_modules\sqlite3\lib\binding\node-v83-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\Abhishek\Desktop\joplin\packages\server\node_modules\sqlite3\lib\binding\node-v83-win32-x64 --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83 --python=C:\Users\Abhishek\.windows-build-tools\python27\python.exe --msvs_version=2015' (1)
lerna ERR! npm install stderr:
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.1.0/node-v83-win32-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for sqlite3@4.1.0 and node@14.3.0 (node-v83 ABI, unknown) (falling back to source compile with node-gyp)
gyp ERR! find VS
gyp ERR! find VS msvs_version was set from command line or npm config
gyp ERR! find VS - looking for Visual Studio version 2015
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS checking VS2017 (15.9.28307.1525) found at:
gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools"
gyp ERR! find VS - found "Visual Studio C++ core features"
gyp ERR! find VS - found VC++ toolset: v141
gyp ERR! find VS - found Windows SDK: 10.0.17763.0
gyp ERR! find VS - msvs_version does not match this version
gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS valid versions for msvs_version:
gyp ERR! find VS - "2017"
gyp ERR! find VS - "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools"
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the "Desktop development with C++" workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
gyp ERR! find VS
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Visual Studio installation to use
gyp ERR! stack at VisualStudioFinder.fail (C:\Users\Abhishek\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
gyp ERR! stack at C:\Users\Abhishek\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16
gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Users\Abhishek\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:351:14)
gyp ERR! stack at C:\Users\Abhishek\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:70:14
gyp ERR! stack at C:\Users\Abhishek\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:372:16
gyp ERR! stack at C:\Users\Abhishek\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
gyp ERR! stack at C:\Users\Abhishek\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
gyp ERR! stack at ChildProcess.exithandler (child_process.js:310:5)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at maybeClose (internal/child_process.js:1051:16)
gyp ERR! System Windows_NT 10.0.19042
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Abhishek\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\Abhishek\\Desktop\\joplin\\packages\\server\\node_modules\\sqlite3\\lib\\binding\\node-v83-win32-x64\\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\\Users\\Abhishek\\Desktop\\joplin\\packages\\server\\node_modules\\sqlite3\\lib\\binding\\node-v83-win32-x64" "--napi_version=6" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83" "--python=C:\\Users\\Abhishek\\.windows-build-tools\\python27\\python.exe" "--msvs_version=2015"
gyp ERR! cwd C:\Users\Abhishek\Desktop\joplin\packages\server\node_modules\sqlite3
gyp ERR! node -v v14.3.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\Abhishek\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\Abhishek\Desktop\joplin\packages\server\node_modules\sqlite3\lib\binding\node-v83-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\Abhishek\Desktop\joplin\packages\server\node_modules\sqlite3\lib\binding\node-v83-win32-x64 --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83 --python=C:\Users\Abhishek\.windows-build-tools\python27\python.exe --msvs_version=2015' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\Abhishek\Desktop\joplin\packages\server\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1051:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
node-pre-gyp ERR! System Windows_NT 10.0.19042
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Abhishek\\Desktop\\joplin\\packages\\server\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\Abhishek\Desktop\joplin\packages\server\node_modules\sqlite3
node-pre-gyp ERR! node -v v14.3.0
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","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":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sqlite3@4.1.0 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sqlite3@4.1.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! C:\Users\Abhishek\AppData\Roaming\npm-cache\_logs\2021-05-19T13_42_31_365Z-debug.log
lerna ERR! npm install exited 1 in '@joplin/server'
lerna WARN complete Waiting for 2 child processes to exit. CTRL-C to exit immediately.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! root@ bootstrap: `lerna bootstrap --force-local --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! C:\Users\Abhishek\AppData\Roaming\npm-cache\_logs\2021-05-19T13_42_31_494Z-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! C:\Users\Abhishek\AppData\Roaming\npm-cache\_logs\2021-05-19T13_42_31_602Z-debug.log```
Btw, are you on a 32-bit system? I remember having a similar issue on win 32 but I've never bothered to get to the bottom of this, since this was not my main machine, just a VM for experiments.
There are some possible solutions in this GH issue Could not find any Visual Studio installation to use after trying all the tips I could find online · Issue #2203 · nodejs/node-gyp · GitHub
No its a 64-bit system, I switched to ubuntu now, I was not able to build it on windows
I was able to build on win 64-bit previously. Check the link I posted. Or use linux I guess.
I build fine on two Windows 10 64 bit systems.
Do you have a windows enviroment variable VS140COMNTOOLS
?