Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Without Python 2, yarn setup fails #4060

Closed
mudlee opened this issue Sep 28, 2020 · 2 comments
Closed

Without Python 2, yarn setup fails #4060

mudlee opened this issue Sep 28, 2020 · 2 comments

Comments

@mudlee
Copy link

mudlee commented Sep 28, 2020

The yarn setup command fails on the latest commit if you don't have python 2 due to this bug: WiseLibs/better-sqlite3#310

Expected Behavior

It must run without any error.

Current Behavior

It fails with the following error:

[4/4] Building fresh packages...
error /project/node_modules/better-sqlite3: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments: 
Directory: /project/node_modules/better-sqlite3
...
TypeError: Unicode-objects must be encoded before hashing
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/project/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 5.4.0-48-generic
gyp ERR! command "/home/x/.nvm/versions/node/v12.18.4/bin/node" "/project/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /project/node_modules/better-sqlite3
gyp ERR! node -v v12.18.4
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok

Possible Solution

Increase the better-sqlite3's version.

Steps to Reproduce (for bugs)

  1. Clone out latest master.
  2. Run yarn setup.
  3. Observe the error.

Your Environment

Latest Ubuntu

@ghost
Copy link

ghost commented Sep 28, 2020

Thanks for opening this issue! A maintainer will review this in the next few days and explicitly select labels so you know what's going on.

If no reviewer appears after a week, a reminder will be sent out.

@stale
Copy link

stale bot commented Oct 28, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: Stale label Oct 28, 2020
@stale stale bot closed this as completed Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant