anothersmith / node-duckdb

DuckDB NodeJS bindings
MIT License
48 stars 12 forks source link

Cannot install the package - 'rm' is not recognized as an internal or external command #129

Closed woodendoors7 closed 2 years ago

woodendoors7 commented 2 years ago

When I run npm install node-duckdb, or run yarn add node-duckdb, I always get errors, and nothing gets installed. At the end it says rm is not recognized as an internal or external command (rm is in fact a command I can run in the command prompt)

Full Error ``` npm ERR! code 1 npm ERR! path C:\Users\name\Desktop\programm\experiment\stealer\grabberAPI\node_modules\node-duckdb npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c prebuild-install --verbose -d -r napi || (yarn download-duckdb && yarn build:duckdb && yarn prebuild:current-target) npm ERR! yarn run v1.22.17 npm ERR! $ rm -rf duckdb && curl -L https://github.com/cwida/duckdb/archive/v0.2.8.tar.gz > duckdb.tar.gz && tar xf duckdb.tar.gz && mv duckdb-0.2.8 duckdb && rm duckdb.tar.gz npm ERR! info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. npm ERR! prebuild-install info begin Prebuild-install version 6.1.4 npm ERR! prebuild-install info looking for local prebuild @ prebuilds\node-duckdb-v0.0.76-napi-v6-win32-x64.tar.gz npm ERR! prebuild-install info looking for cached prebuild @ C:\Users\name\AppData\Local\npm-cache\_prebuilds\bc89a1-node-duckdb-v0.0.76-napi-v6-win32-x64.tar.gz npm ERR! prebuild-install http request GET https://github.com/deepcrawl/node-duckdb/releases/download/v0.0.76/node-duckdb-v0.0.76-napi-v6-win32-x64.tar.gz npm ERR! prebuild-install http 404 https://github.com/deepcrawl/node-duckdb/releases/download/v0.0.76/node-duckdb-v0.0.76-napi-v6-win32-x64.tar.gz npm ERR! prebuild-install WARN install No prebuilt binaries found (target=6 runtime=napi arch=x64 libc= platform=win32) npm ERR! 'rm' is not recognized as an internal or external command, npm ERR! operable program or batch file. npm ERR! error Command failed with exit code 1. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\name\AppData\Local\npm-cache\_logs\2021-11-26T22_44_49_370Z-debug.log ```

I found some older issues opened on other repos, however, they either just ended up not being solved, or not helpful, or I didn't search for long enough.

Does anyone have any idea what could be wrong?

rprovodenko commented 2 years ago

Hey Sorry, that'd be because Windows is not a supported platform. You could try using the windows linux subsystem or a docker image