Skip to content

npm install failed when tried to run calculator demo #108

Description

@ckc

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 har-validator@5.1.3: this library is no longer supported
npm WARN deprecated uuid@3.3.2: 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 mkdirp@0.5.1: 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 request@2.88.0: 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/nodegui@0.1.3 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 node-gyp@4.0.0
npm ERR! gyp info using node@18.9.0 | 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions