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

gyp ERR! stack Error: make failed with exit code: 2 #3

Open
PaulRBerg opened this issue Sep 28, 2019 · 1 comment
Open

gyp ERR! stack Error: make failed with exit code: 2 #3

PaulRBerg opened this issue Sep 28, 2019 · 1 comment

Comments

@PaulRBerg
Copy link
Contributor

PaulRBerg commented Sep 28, 2019

Current Behavior

In basic-wallet 0.1.0, I cannot install dependencies with the yarn.lock file held in version control. I have to follow this solution from StackOverflow, delete yarn.lock and install dependencies again.

Expected Behavior

I should be able to install dependencies without deleting yarn.lock.

Description

Error output:

warning Error running install script for optional dependency: "/Users/paulrberg/Documents/Pad/burner-wallet-2-2/basic-wallet/node_modules/eccrypto/node_modules/secp256k1: Command failed.
Exit code: 1
Command: npm run rebuild
Arguments:
Directory: /Users/paulrberg/Documents/Pad/burner-wallet-2-2/basic-wallet/node_modules/eccrypto/node_modules/secp256k1
Output:
npm WARN lifecycle The node binary used for scripts is /var/folders/_x/nsr657154_s4z371xj0fvg8m0000gq/T/yarn--1569706375037-0.7217285150526862/node but npm is using /Users/paulrberg/.nvm/versions/node/v10.15.3/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.

> [email protected] rebuild /Users/paulrberg/Documents/Pad/burner-wallet-2-2/basic-wallet/node_modules/eccrypto/node_modules/secp256k1
> node-gyp rebuild

make: Entering directory '/Users/paulrberg/Documents/Pad/burner-wallet-2-2/basic-wallet/node_modules/eccrypto/node_modules/secp256k1/build'
  CXX(target) Release/obj.target/secp256k1/src/addon.o
../src/addon.cc:14:1: error: unknown type name 'secp256k1_context'; did you mean 'secp256k1_context_t'?
secp256k1_context* secp256k1ctx;
^~~~~~~~~~~~~~~~~
secp256k1_context_t
/usr/local/include/secp256k1.h:50:41: note: 'secp256k1_context_t' declared here
typedef struct secp256k1_context_struct secp256k1_context_t;
                                        ^
1 error generated.
make: *** [secp256k1.target.mk:162: Release/obj.target/secp256k1/src/addon.o] Error 1
make: Leaving directory '/Users/paulrberg/Documents/Pad/burner-wallet-2-2/basic-wallet/node_modules/eccrypto/node_modules/secp256k1/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/paulrberg/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:196:23)
gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Darwin 18.7.0
gyp ERR! command \"/Users/paulrberg/.nvm/versions/node/v10.15.3/bin/node\" \"/Users/paulrberg/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"
gyp ERR! cwd /Users/paulrberg/Documents/Pad/burner-wallet-2-2/basic-wallet/node_modules/eccrypto/node_modules/secp256k1
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] rebuild: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] rebuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Environment

  • macOS 10.14.6
  • node 10.15.3
  • yarn 1.17.3
  • basic-wallet 0.1.0
@PaulRBerg
Copy link
Contributor Author

Update: the error occurs not just in "basic-wallet", but in all packages.

dmihal pushed a commit that referenced this issue Oct 15, 2019
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