aws-samples / aws-iam-identity-center-extensions

This solution is intended for enterprises that need a streamlined way of managing user access to their AWS accounts. Using this solution, your identity and access management teams can extend AWS SSO functionality by automating common access management and governance use cases
MIT License
65 stars 24 forks source link

yarn install doesn't work #116

Closed Almenon closed 1 year ago

Almenon commented 1 year ago

On sha f69e8fe5f92dfde196461c91fce8e258da4eeda7, with mac M1 chip Ventura 13. Following the region switch guide.

➜  nodejs git:(main) ✗ yarn --version
3.5.0
➜  nodejs git:(main) ✗ nodejs --version
v18.16.0
➜  solution-code git:(main) yarn install --frozen-lockfile
➤ YN0050: The --frozen-lockfile option is deprecated; use --immutable and/or --immutable-cache instead
➤ YN0070: Migrating from Yarn 1; automatically enabling the compatibility node-modules linker 👍

➤ YN0000: ┌ Resolution step
➤ YN0032: │ fsevents@npm:2.3.2: Implicit dependencies on node-gyp are discouraged
➤ YN0061: │ @npmcli/move-file@npm:2.0.1 is deprecated: This functionality has been moved to @npmcli/fs
➤ YN0000: └ Completed in 4s 338ms
➤ YN0000: ┌ Post-resolution validation
➤ YN0028: │ The lockfile would have been modified by this install, which is explicitly forbidden.
➤ YN0000: └ Completed
➤ YN0000: Failed with errors in 4s 360ms
➜  solution-code git:(main) ✗ yarn
➤ YN0000: ┌ Resolution step
➤ YN0032: │ fsevents@npm:2.3.2: Implicit dependencies on node-gyp are discouraged
➤ YN0061: │ @npmcli/move-file@npm:2.0.1 is deprecated: This functionality has been moved to @npmcli/fs
➤ YN0000: └ Completed in 4s 528ms
➤ YN0000: ┌ Fetch step
➤ YN0013: │ yargs-parser@npm:21.0.1 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ yargs@npm:17.5.1 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ yn@npm:3.1.1 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ yocto-queue@npm:0.1.0 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ typescript@npm:4.8.3 can't be found in the cache and will be fetched from the remote registry
➤ YN0000: └ Completed in 27s 276ms
➤ YN0000: ┌ Link step
➤ YN0007: │ esbuild@npm:0.15.8 must be built because it never has been before or the last one failed
➤ YN0007: │ aws-sso-extensions-for-enterprise@workspace:. must be built because it never has been before or the last one failed
➤ YN0009: │ aws-sso-extensions-for-enterprise@workspace:. couldn't be built successfully (exit code 1, logs can be found here: /private/var/folders/k9/5_z0cvss6l522ps8g30x1cl40000gp/T/xfs-0af133fc/build.log)
➤ YN0000: └ Completed in 5s 583ms
➤ YN0000: Failed with errors in 37s 447ms
Almenon commented 1 year ago

The issue was wrong yarn version. I needed to use 1.22.17