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

Unsupported platform: Windows_NT x64 #36

Open
coolsnake opened this issue May 18, 2022 · 5 comments
Open

Unsupported platform: Windows_NT x64 #36

coolsnake opened this issue May 18, 2022 · 5 comments

Comments

@coolsnake
Copy link

I want to install sandbox in windows 10 and got following error:

$ npm i -g near-sandbox
npm ERR! code 1
npm ERR! path d:\nodejs\node_global\node_modules\near-sandbox
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node ./install.js
npm ERR! d:\nodejs\node_global\node_modules\near-sandbox\dist\getBinary.js:13
npm ERR! throw new Error(Unsupported platform: ${type} ${arch});
npm ERR! ^
npm ERR!
npm ERR! Error: Unsupported platform: Windows_NT x64
npm ERR! at getPlatform (d:\nodejs\node_global\node_modules\near-sandbox\dist\getBinary.js:13:11)
npm ERR! at AWSUrl (d:\nodejs\node_global\node_modules\near-sandbox\dist\getBinary.js:16:30)
npm ERR! at getBinary (d:\nodejs\node_global\node_modules\near-sandbox\dist\getBinary.js:27:19)
npm ERR! at Object. (d:\nodejs\node_global\node_modules\near-sandbox\dist\install.js:4:27)
npm ERR! at Module._compile (node:internal/modules/cjs/loader:1105:14)
npm ERR! at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
npm ERR! at Module.load (node:internal/modules/cjs/loader:981:32)
npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:822:12)
npm ERR! at Module.require (node:internal/modules/cjs/loader:1005:19)
npm ERR! at require (node:internal/modules/cjs/helpers:102:18)

npm ERR! A complete log of this run can be found in:
npm ERR! D:\nodejs\node_cache_logs\2022-05-18T09_18_38_662Z-debug-0.log

@TMadzi
Copy link

TMadzi commented Jun 6, 2022

Any update or workaround on this? I am facing the same issue.

@willemneal
Copy link
Contributor

I would try using the linux subsystem. The architecture is supported, just not the OS.

@rmuftiev
Copy link

rmuftiev commented Sep 3, 2022

Hey! We are facing the same issue. Any updates?

@volovyks
Copy link
Contributor

volovyks commented Nov 4, 2022

@ChaoticTempest how big is the effort to fix this? It is blocking near/near-sdk-js#94.
And is it on our roadmap?

@ChaoticTempest
Copy link
Member

@volovyks nothing planned in our roadmap. The big issue with supporting windows is that windows hasn't been tested that well on nearcore, so there can be unexpected behavior if we publish those binaries. Would probably require another separate pipeline specifically for those as well similarly to when the M1 one was added.

So unfortunately, it's recommended for users to use WSL2 when going to test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants