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

npm install failed when tried to run calculator demo #108

Open
ckc opened this issue Sep 25, 2022 · 0 comments
Open

npm install failed when tried to run calculator demo #108

ckc opened this issue Sep 25, 2022 · 0 comments

Comments

@ckc
Copy link

ckc commented Sep 25, 2022

jack@MacBook-Pro calculator % npm install
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
npm ERR! code 1
npm ERR! path /Users/jack/Projects/examples/react-nodegui/calculator/node_modules/@nodegui/nodegui
npm ERR! command failed
npm ERR! command sh -c -- npm run build:addon
npm ERR! > @nodegui/[email protected] build:addon
npm ERR! > node-gyp -j 8 configure build
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | darwin | x64
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
npm ERR! gyp ERR! stack at PythonFinder.failNoPython (/Users/jack/Projects/examples/react-nodegui/calculator/node_modules/node-gyp/lib/configure.js:484:19)
npm ERR! gyp ERR! stack at PythonFinder. (/Users/jack/Projects/examples/react-nodegui/calculator/node_modules/node-gyp/lib/configure.js:406:16)
npm ERR! gyp ERR! stack at F (/Users/jack/Projects/examples/react-nodegui/calculator/node_modules/which/which.js:68:16)
npm ERR! gyp ERR! stack at E (/Users/jack/Projects/examples/react-nodegui/calculator/node_modules/which/which.js:80:29)
npm ERR! gyp ERR! stack at /Users/jack/Projects/examples/react-nodegui/calculator/node_modules/which/which.js:89:16
npm ERR! gyp ERR! stack at /Users/jack/Projects/examples/react-nodegui/calculator/node_modules/isexe/index.js:42:5
npm ERR! gyp ERR! stack at /Users/jack/Projects/examples/react-nodegui/calculator/node_modules/isexe/mode.js:8:5
npm ERR! gyp ERR! stack at FSReqCallback.oncomplete (node:fs:211:21)
npm ERR! gyp ERR! System Darwin 21.6.0
npm ERR! gyp ERR! command "/usr/local/Cellar/node/18.9.0/bin/node" "/Users/jack/Projects/examples/react-nodegui/calculator/node_modules/.bin/node-gyp" "-j" "8" "configure" "build"
npm ERR! gyp ERR! cwd /Users/jack/Projects/examples/react-nodegui/calculator/node_modules/@nodegui/nodegui
npm ERR! gyp ERR! node -v v18.9.0
npm ERR! gyp ERR! node-gyp -v v4.0.0
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/jack/.npm/_logs/2022-09-25T00_21_16_254Z-debug-0.log

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