Open richapasari opened 10 months ago
Any clue here?
I have the same issue with my own packages from github when trying to install them in docker, local they work
any news here please ? getting exactly the same error
@richapasari That repo transitively depends on the iltorb
package, which failed to install because its postinstall script (node ./scripts/install.js || node-gyp rebuild
) failed.
Based on the output, ./scripts/install.js
tries and fails to look for a prebuilt binary for your system, and node-gyp
fails because you don't have the node-gyp
.
Others: If what I said above does not help, please provide a reproduction so we can take a look.
I am using yarn4 with nodeLinker node_modules. When I am using react-select version in package.json, modern yarn works fine "react-select": "5.7.7", But when I changed it to
"react-select": "git+https://github.com/MindTickle/mt-react-select.git#main", On running yarn, getting below error,
Packing react-select@https://github.com/MindTickle/mt-react-select.git#commit=b56cbdba8fd6636bb17609e61583cb26ac409905 from sources Using Yarn Classic for bootstrap. Reason: "__metadata" key not found in yarn.lock, must be a Yarn classic lockfile
➤ YN0000: Downloading https://classic.yarnpkg.com/latest.js ➤ YN0000: Saving the new release in .yarn/releases/yarn-classic.cjs ➤ YN0000: Done in 4s 137ms
yarn install v1.22.19 [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... [4/4] Building fresh packages... error /private/var/folders/j3/zvjj264s4jj1gn1041x68tmr0000gn/T/xfs-bc79575b/node_modules/iltorb: Command failed. Exit code: 1 Command: node ./scripts/install.js || node-gyp rebuild Arguments: Directory: /private/var/folders/j3/zvjj264s4jj1gn1041x68tmr0000gn/T/xfs-bc79575b/node_modules/iltorb Output: info looking for cached prebuild @ /Users/richapasari/.npm/_prebuilds/cf0314-iltorb-v2.4.5-node-v115-darwin-arm64.tar.gz http request GET https://github.com/nstepien/iltorb/releases/download/v2.4.5/iltorb-v2.4.5-node-v115-darwin-arm64.tar.gz http 404 https://github.com/nstepien/iltorb/releases/download/v2.4.5/iltorb-v2.4.5-node-v115-darwin-arm64.tar.gz WARN install No prebuilt binaries found (target=20.9.0 runtime=node arch=arm64 libc= platform=darwin) yarn run v1.22.21 error Command "node-gyp" not found. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.