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

[BUG] Unsupported platform error during npm install (Darwin x64) #2419

Open
1 of 6 tasks
Amira1502 opened this issue Jan 7, 2025 · 0 comments
Open
1 of 6 tasks

[BUG] Unsupported platform error during npm install (Darwin x64) #2419

Amira1502 opened this issue Jan 7, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Amira1502
Copy link
Contributor

Amira1502 commented Jan 7, 2025

Description

I'm encountering an error during npm install while using the near-sandbox package on macOS (Darwin x64). The installation fails due to an unsupported platform error.

Error Output

npm WARN deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm WARN deprecated [email protected]: use 3.0.0 instead, safe-buffer has been merged and released for compatibility
npm WARN deprecated [email protected]: This package is no longer supported.
...
npm ERR! Error: Unsupported platform: Darwin x64
npm ERR!     at getPlatform (/Users/amiranasri/js-mac/node_modules/near-sandbox/dist/getBinary.js:17:11)
npm ERR!     at AWSUrl (/Users/amiranasri/js-mac/node_modules/near-sandbox/dist/getBinary.js:20:30)
npm ERR!     at getBinary (/Users/amiranasri/js-mac/node_modules/near-sandbox/dist/getBinary.js:31:19)
npm ERR!     at Object.<anonymous> (/Users/amiranasri/js-mac/node_modules/near-sandbox/dist/install.js:4:27)

Environment Details

  • Node.js Version: v22.12.0
  • Operating System: macOS (Darwin x64)
  • Package: near-sandbox

Steps to Reproduce

  1. Execute the following command in your terminal:
    npx create-near-app@latest
  • Respond to the Prompt
    You will see a prompt asking you to choose what you want to build. Use the arrow keys to navigate and press Enter to select one of the options:

    A Web App for creating a frontend application.
    A Smart Contract for creating a smart contract project for the NEAR blockchain.

  • Complete the Setup
  • After making your selection, follow the instructions provided by the CLI to configure your project.
  1. Navigate to the directory
  2. Run npm install.
  3. Observe the error.

Expected Behavior

The installation should proceed without errors.

Actual Result

photo_2025-01-07_16-41-34

Page URL

https://docs.near.org/build/web3-apps/quickstart

Impact

  • Incorrect information
  • Missing information
  • Unclear explanation
  • Broken link
  • Code example doesn't work
  • Other (please specify in description)

Suggested Fix

No response

@Amira1502 Amira1502 added the bug Something isn't working label Jan 7, 2025
@github-project-automation github-project-automation bot moved this to NEW❗ in DevRel Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: NEW❗
Status: No status
Development

No branches or pull requests

1 participant