atlassian / atlassian/nucleus

error E:\User\Documents\Work\nucleus-server\node_modules\sqlite3: Command failed.

Open
#98 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
420
Forks
100
PR merge metrics
No merged PRs in 30d

Description

install nucleus manually, when I run `yarn` then get those errors. any helps? thanks :)
```sh
PS E:\User\Documents\Work\nucleus-server> node --version
v14.4.0
PS E:\User\Documents\Work\nucleus-server> npm --version
6.14.5
PS E:\User\Documents\Work\nucleus-server> yarn
yarn install v1.22.4
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.1.2: The platform "win32" is incompatible with this module.
info "fsevents@1.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > @atlaskit/banner@6.1.2" has incorrect peer dependency "react@^16.3.0".
warning " > @atlaskit/banner@6.1.2" has incorrect peer dependency "styled-components@^3.2.6".
warning "@atlaskit/banner > @atlaskit/theme@4.1.0" has incorrect peer dependency "react@^16.3.0".
warning "@atlaskit/banner > @atlaskit/theme@4.1.0" has incorrect peer dependency "styled-components@^3.2.6".
[4/4] Building fresh packages...
[1/4] ⠁ sqlite3
[-/4] ⠁ waiting...
[-/4] ⠁ waiting...
error E:\User\Documents\Work\nucleus-server\node_modules\sqlite3: Command failed.
Exit code: 1
Command: node-pre-gyp install --fallback-to-build
Arguments:
Directory: E:\User\Documents\Work\nucleus-server\node_modules\sqlite3
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.6.39
node-pre-gyp info using node@14.4.0 | win32 | x64
node-pre-gyp info check checked for "E:\User\Documents\Work\nucleus-server\node_modules\sqlite3\lib\binding\node-v83-win32-x64\node_sqlite3.node" (not found)
node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v83-win32-x64.tar.gz
node-pre-gyp http 403 https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v83-win32-x64.tar.gz
node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v83-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for sqlite3@3.1.13 and node@14.4.0 (node-v83 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp http 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v83-win32-x64.tar.gz
node-pre-gyp ERR! Tried to download(undefined): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v83-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for sqlite3@3.1.13 and node@14.4.0 (node-v83 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp http Connection closed while downloading tarball file
gyp info it worked if it ends with ok
gypgyp info using node-gyp@3.6.2
gyp info info usingit worked if it ends with ok
node@14.4.0 | win32 | x64
gyp info using node-gyp@3.6.2
gyp info using node@14.4.0 | win32 | x64
gyp info ok
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp@3.6.2
gyp info using node@14.4.0 | win32 | x64
gyp info it worked if it ends with ok
gyp info using node-gyp@3.6.2
gyp info using node@14.4.0 | win32 | x64
gyp info spawn C:\Users\Clark\.windows-build-tools\python27\python.EXE
gyp info spawn args [
gyp info spawn args 'E:\\User\\Documents\\Work\\nucleus-server\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=2015',
gyp info spawn args '-I',
gyp info spawn args 'E:\\User\\Documents\\Work\\nucleus-server\\node_modules\\sqlite3\\build\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'E:\\User\\Documents\\Work\\nucleus-server\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\Clark\\.node-gyp\\14.4.0\\include\\node\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\Users\\Clark\\.node-gyp\\14.4.0',
gyp info spawn args '-Dnode_gyp_dir=E:\\User\\Documents\\Work\\nucleus-server\\node_modules\\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\Users\\Clark\\.node-gyp\\14.4.0\\<(target_arch)\\node.lib',
gyp info spawn args '-Dmodule_root_dir=E:\\User\\Documents\\Work\\nucleus-server\\node_modules\\sqlite3',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'E:\\User\\Documents\\Work\\nucleus-server\\node_modules\\sqlite3\\build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn C:\Users\Clark\.windows-build-tools\python27\python.EXE
gyp info spawn args [
gyp info spawn args 'E:\\User\\Documents\\Work\\nucleus-server\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=2015',
gyp info spawn args '-I',
gyp info spawn args 'E:\\User\\Documents\\Work\\nucleus-server\\node_modules\\sqlite3\\build\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'E:\\User\\Documents\\Work\\nucleus-server\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\Clark\\.node-gyp\\14.4.0\\include\\node\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\Users\\Clark\\.node-gyp\\14.4.0',
gyp info spawn args '-Dnode_gyp_dir=E:\\User\\Documents\\Work\\nucleus-server\\node_modules\\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\Users\\Clark\\.node-gyp\\14.4.0\\<(target_arch)\\node.lib',
gyp info spawn args '-Dmodule_root_dir=E:\\User\\Documents\\Work\\nucleus-server\\node_modules\\sqlite3',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'E:\\User\\Documents\\Work\\nucleus-server\\node_modules\\sqlite3\\build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info ok
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp@3.6.2
gyp info using node@14.4.0 | win32 | x64
gyp info it worked if it ends with ok
gyp info using node-gyp@3.6.2
gyp info using node@14.4.0 | win32 | x64
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe
gyp info spawn args [
gyp info spawn args 'build/binding.sln',
gyp info spawn args '/clp:Verbosity=minimal',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64'
gyp info spawn args ]
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe
gyp info spawn args [
gyp info spawn args 'build/binding.sln',
gyp info spawn args '/clp:Verbosity=minimal',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64'
gyp info spawn args ]
Building the projects in this solution one at a time. To enable parallel build, please add the "/m"
switch.
Building the projects in this solution one at a time. To enable parallel build, please add the "/m"
switch.
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(67,5): error MSB8020: The build tools for v140 (Platform Toolset = 'v140') cannot be found. To build using the v140 build tools, please install v140 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [E:\User\Documents\Work\nucleus-server\node_modules\sqlite3\build\deps\action_before_build.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(67,5): error MSB8020: The build tools for v140 (Platform Toolset = 'v140') cannot be found. To build using the v140 build tools, please install v140 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [E:\User\Documents\Work\nucleus-server\node_modules\sqlite3\build\deps\action_before_build.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (E:\User\Documents\Work\nucleus-server\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "E:\\User\\Documents\\Work\\nucleus-server\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-build" "--module=E:\\User\\Documents\\Work\\nucleus-server\\node_modules\\sqlite3\\lib\\binding\\node-v83-win32-x64\\node_sqlite3.node"
"--module_name=node_sqlite3" "--module_path=E:\\User\\Documents\\Work\\nucleus-server\\node_modules\\sqlite3\\lib\\binding\\node-v83-win32-x64"
gyp ERR! cwd E:\User\Documents\Work\nucleus-server\node_modules\sqlite3
gyp ERR! node -v v14.4.0
gyp ERR! node-gyp -v v3.6.2
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 E:\User\Documents\Work\nucleus-server\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=E:\User\Documents\Work\nucleus-server\node_modules\sqlite3\lib\binding\node-v83-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=E:\User\Documents\Work\nucleus-server\node_modules\sqlite3\lib\binding\node-v83-win32-x64' (1)
node-pre-gyp ERR! stack at ChildProcess. (E:\User\Documents\Work\nucleus-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.18362
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "E:\\User\\Documents\\Work\\nucleus-server\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd E:\User\Documents\Work\nucleus-server\node_modules\sqlite3
node-pre-gyp ERR! node -v v14.4.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe E:\User\Documents\Work\nucleus-server\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=E:\User\Documents\Work\nucleus-server\node_modules\sqlite3\lib\binding\node-v83-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --

```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the Windows installation with Node v14.4.0 and `yarn`, focusing on the `sqlite3` package, `node-pre-gyp`, and `node-gyp` output. Done means the documented manual installation completes successfully instead of failing while building the native dependency.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, sqlite, typescript
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.