near / near-cli

General purpose command line tools for interacting with NEAR Protocol
https://docs.near.org
MIT License
193 stars 93 forks source link

Upgrading Version from 3.2.0 to 3.3.1 with "yarn add" Broken for Windows OS #986

Closed idea404 closed 2 years ago

idea404 commented 2 years ago

Describe the bug Upgrading the CLI from v3.2.0 to v3.3.1 is not possible due to a dependency with sandbox which throws an exception for Windows OS.

To Reproduce Steps to reproduce the behavior: Run yarn add near-cli from a Windows shell using near-cli v3.2.0 (or presumably also earlier versions)

Expected behavior an error prompt:

...
 error C:\...\Code\NEAR\my-new-app\node_modules\near-sandbox: Command failed.
 Exit code: 1
 Command: node ./install.js
 Arguments:
 Directory: C:\...\Code\NEAR\my-new-app\node_modules\near-sandbox
 Output:
 C:\...\NEAR\my-new-app\node_modules\near-sandbox\dist\getBinary.js:13
 throw new Error(`Unsupported platform: $

 {type} 

 $

 {arch} 

`);
 ^

Error: Unsupported platform: Windows_NT x64
 ....

Screenshots Seen above in code excerpt.

Desktop (please complete the following information):

idea404 commented 2 years ago

upgrading version still possible with npm install -g near-cli@3.3.1