billchurch / webssh2

Web SSH Client using ssh2, socket.io, xterm.js, and express. webssh webssh2
MIT License
2.26k stars 527 forks source link

[Error]: Error running install script for optional dependency: "/Users/~/Projects/webssh2/app/node_modules/cpu-features: Command failed. #358

Open Haoke98 opened 3 months ago

Haoke98 commented 3 months ago

What happened?

An errror happend when i install the dependencies.

Node Version

v16.20.2

NPM Version

npm@8.19.4

Server OS Version

Darwin fucking-machine.local 22.6.0 Darwin Kernel Version 22.6.0: Tue Nov 7 21:40:08 PST 2023; root:xnu-8796.141.3.702.9~2/RELEASE_ARM64_T6000 arm64

WebSSH2 release version

0.4.6

OS and Version of SSH server

No response

Browser Version

No response

Relevant log output

(base) shadikesadamu@fucking-machine app % git checkout current
Note: switching to 'current'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at cf4d8c3 chore(release): 0.4.6
(base) shadikesadamu@fucking-machine app % yarn --production
yarn install v1.22.17
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] 🔍  Resolving packages...
warning @fortawesome/fontawesome-svg-core@1.3.0: Please upgrade to 6.1.0. https://fontawesome.com/docs/changelog/
warning @fortawesome/fontawesome-svg-core > @fortawesome/fontawesome-common-types@0.3.0: Please upgrade to 6.1.0. https://fontawesome.com/docs/changelog/
warning source-map-loader > abab@2.0.6: Use your platform's native atob() and btoa() methods instead
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
[1/2] ⠈ cpu-features
warning Error running install script for optional dependency: "/Users/shadikesadamu/Projects/webssh2/app/node_modules/cpu-features: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments: 
Directory: /Users/shadikesadamu/Projects/webssh2/app/node_modules/cpu-features
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@9.1.0
gyp info using node@16.20.2 | darwin | arm64
gyp info find Python using Python version 3.10.9 found at \"/Users/shadikesadamu/anaconda3/bin/python3\"
gyp http GET https://npm.taobao.org/dist/v16.20.2/node-v16.20.2-headers.tar.gz
gyp WARN install got an error, rolling back install
gyp ERR! configure error 
gyp ERR! stack FetchError: request to https://npm.taobao.org/dist/v16.20.2/node-v16.20.2-headers.tar.gz failed, reason: certificate has expired
gyp ERR! stack     at ClientRequest.<anonymous> (/Users/shadikesadamu/.nvm/versions/node/v16.20.2/lib/node_modules/npm/node_modules/minipass-fetch/lib/index.js:130:14)
gyp ERR! stack     at ClientRequest.emit (node:events:513:28)
gyp ERR! stack     at TLSSocket.socketErrorListener (node:_http_client:494:9)
gyp ERR! stack     at TLSSocket.emit (node:events:513:28)
gyp ERR! stack     at emitErrorNT (node:internal/streams/destroy:157:8)
gyp ERR! stack     at emitErrorCloseNT (node:internal/streams/destroy:122:3)
gyp ERR! stack     at processTicksAndRejections (node:internal/process/task_queues:83:21)
gyp ERR! System Darwin 22.6.0
gyp ERR! command \"/Users/shadikesadamu/.nvm/versions/node/v16.20.2/bin/node\" \"/Users/shadikesadamu/.nvm/versions/node/v16.20.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"
gyp ERR! cwd /Users/shadikesadamu/Projects/webssh2/app/node_modules/cpu-features
gyp ERR! node -v v16.20.2
gyp ERR! node-gyp -v v9.1.0
gyp ERR! not ok"
success Saved lockfile.
✨  Done in 12.47s.