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

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

Open
Haoke98 opened this issue Mar 14, 2024 · 0 comments
Assignees
Labels

Comments

@Haoke98
Copy link

Haoke98 commented Mar 14, 2024

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants