archway-network / cli

Develop WASM smart contracts with the Archway network developer CLI
https://docs.archway.io
Apache License 2.0
44 stars 21 forks source link

Support for 64-bit Architecture #170

Closed arunadaybasu closed 1 year ago

arunadaybasu commented 1 year ago

Installation doesn't work on my Windows 10 x64 system:

npm install -g @archwayhq/cli --verbose npm verb cli E:\Program Files\nodejs\node.exe C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js npm info using npm@9.6.2 npm info using node@v16.18.1 npm verb title npm install @archwayhq/cli npm verb argv "install" "--global" "@archwayhq/cli" "--loglevel" "verbose" npm verb logfile logs-max:10 dir:C:\Users\Administrator\AppData\Local\npm-cache_logs\2023-03-22T15_29_05_312Z- npm verb logfile C:\Users\Administrator\AppData\Local\npm-cache_logs\2023-03-22T15_29_05_312Z-debug-0.log npm http fetch GET 200 https://registry.npmjs.org/@archwayhq%2fcli 4223ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/axios 92ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/lodash 168ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/debug 217ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/chalk 221ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/commander 345ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/async-retry 412ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/ora 409ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/prompts 411ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/dockerode 1104ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/promisify-child-process 1969ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/cli-cursor 186ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/retry 195ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/bl 190ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/ms 207ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/follow-redirects 218ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/tar-fs 228ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/sisteransi 236ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/supports-color 257ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/log-symbols 251ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/is-interactive 258ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/is-unicode-supported 262ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/strip-ansi 274ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/cli-spinners 284ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/ansi-styles 330ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/wcwidth 319ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/kleur 326ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/docker-modem 1142ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/@balena%2fdockerignore 2686ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/color-convert 71ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/has-flag 80ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/color-name 73ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/pump 118ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/readable-stream 188ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/mkdirp-classic 188ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/tar-stream 983ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/ssh2 1064ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/chownr 1151ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/split-ca 1862ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/asn1 90ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/bcrypt-pbkdf 92ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/nan 92ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/util-deprecate 109ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/inherits 126ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/cpu-features 159ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/string_decoder 172ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/ansi-regex 57ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/restore-cursor 60ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/buffer 67ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/defaults 826ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/base64-js 476ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/ieee754 477ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/onetime 73ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/signal-exit 89ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/safe-buffer 117ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/mimic-fn 91ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/safer-buffer 87ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/buildcheck 130ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/tweetnacl 154ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/once 88ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/fs-constants 97ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/end-of-stream 98ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/end-of-stream 164ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/wrappy 134ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/clone 47ms (cache revalidated) npm verb stack Error: Unsupported platform npm verb stack at checkPlatform (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\npm-install-checks\ lib\index.js:34:25) npm verb stack at Arborist.[checkEngineAndPlatform] (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules \@npmcli\arborist\lib\arborist\build-ideal-tree.js:235:9) npm verb stack at Arborist.buildIdealTree (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\a rborist\lib\arborist\build-ideal-tree.js:210:42) npm verb stack at processTicksAndRejections (node:internal/process/task_queues:96:5) npm verb stack at async Arborist.reify (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arbo rist\lib\arborist\reify.js:159:5) npm verb stack at async Install.exec (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\lib\commands\install.js:146 :5) npm verb stack at async module.exports (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\lib\cli.js:134:5) npm verb pkgid @archwayhq/cli@1.5.0 npm verb cwd E:\Projects\archway npm verb Windows_NT 10.0.19044 npm verb node v16.18.1 npm verb npm v9.6.2 npm ERR! code EBADPLATFORM npm ERR! notsup Unsupported platform for @archwayhq/cli@1.5.0: wanted {"os":"!win32"} (current: {"os":"win32","arch":"x64"}) npm ERR! notsup Valid OS: !win32 npm ERR! notsup Valid Arch: undefined npm ERR! notsup Actual OS: win32 npm ERR! notsup Actual Arch: x64 npm verb exit 1 npm verb unfinished npm timer reify 1679498945368 npm verb unfinished npm timer reify:loadTrees 1679498945373 npm verb code 1

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Administrator\AppData\Local\npm-cache_logs\2023-03-22T15_29_05_312Z-debug-0.log

Log Information:

0 verbose cli E:\Program Files\nodejs\node.exe C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js 1 info using npm@9.6.2 2 info using node@v16.18.1 3 timing npm:load:whichnode Completed in 2ms 4 timing config:load:defaults Completed in 2ms 5 timing config:load:file:C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\npmrc Completed in 2ms 6 timing config:load:builtin Completed in 2ms 7 timing config:load:cli Completed in 1ms 8 timing config:load:env Completed in 1ms 9 timing config:load:file:E:\Projects\archway.npmrc Completed in 0ms 10 timing config:load:project Completed in 1ms 11 timing config:load:file:C:\Users\Administrator.npmrc Completed in 0ms 12 timing config:load:user Completed in 0ms 13 timing config:load:file:C:\Users\Administrator\AppData\Roaming\npm\etc\npmrc Completed in 0ms 14 timing config:load:global Completed in 0ms 15 timing config:load:setEnvs Completed in 1ms 16 timing config:load Completed in 9ms 17 timing npm:load:configload Completed in 9ms 18 timing npm:load:mkdirpcache Completed in 1ms 19 timing npm:load:mkdirplogs Completed in 0ms 20 verbose title npm config get cache 21 verbose argv "config" "get" "cache" 22 timing npm:load:setTitle Completed in 1ms 23 timing config:load:flatten Completed in 3ms 24 timing npm:load:display Completed in 4ms 25 verbose logfile logs-max:10 dir:C:\Users\Administrator\AppData\Local\npm-cache_logs\2023-03-22T15_31_21_102Z- 26 verbose logfile C:\Users\Administrator\AppData\Local\npm-cache_logs\2023-03-22T15_31_21_102Z-debug-0.log 27 timing npm:load:logFile Completed in 7ms 28 timing npm:load:timers Completed in 0ms 29 timing npm:load:configScope Completed in 0ms 30 timing npm:load Completed in 24ms 31 timing command:config Completed in 3ms 32 verbose exit 0 33 timing npm Completed in 52ms 34 info ok

System Architecture/Information:

OS Name Microsoft Windows 10 Pro Version 10.0.19044 Build 19044 Other OS Description Not Available OS Manufacturer Microsoft Corporation System Name DESKTOP-9HU6DH7 System Manufacturer Micro-Star International Co., Ltd. System Model MS-7A36 System Type x64-based PC System SKU To be filled by O.E.M. Processor AMD Ryzen 5 2600 Six-Core Processor, 3400 Mhz, 6 Core(s), 12 Logical Processor(s) BIOS Version/Date American Megatrends International, LLC. A.64, 7/20/2022 SMBIOS Version 2.8 Embedded Controller Version 255.255 BIOS Mode UEFI BaseBoard Manufacturer Micro-Star International Co., Ltd. BaseBoard Product A320M PRO-VD/S V2 (MS-7A36) BaseBoard Version 2.0 Platform Role Desktop Secure Boot State Off PCR7 Configuration Binding Not Possible Windows Directory C:\Windows System Directory C:\Windows\system32 Boot Device \Device\HarddiskVolume4 Locale United States Hardware Abstraction Layer Version = "10.0.19041.2728" User Name DESKTOP-9HU6DH7\Administrator Time Zone India Standard Time Installed Physical Memory (RAM) 16.0 GB Total Physical Memory 15.9 GB Available Physical Memory 7.44 GB Total Virtual Memory 18.3 GB Available Virtual Memory 6.03 GB Page File Space 2.38 GB Page File C:\pagefile.sys Kernel DMA Protection Off Virtualization-based security Running Virtualization-based security Required Security Properties
Virtualization-based security Available Security Properties Base Virtualization Support, DMA Protection, Secure Memory Overwrite, UEFI Code Readonly, SMM Security Mitigations 1.0 Virtualization-based security Services Configured
Virtualization-based security Services Running
Device Encryption Support Reasons for failed automatic device encryption: PCR7 binding is not supported, Hardware Security Test Interface failed and device is not Modern Standby, Un-allowed DMA capable bus/device(s) detected A hypervisor has been detected. Features required for Hyper-V will not be displayed.

aelesbao commented 1 year ago

Duplicate of #169. Replied there, but I'm copying the message here:

The CLI is not supported on Windows. You should use it via WSL.