#nestjs cli

1 messages · Page 1 of 1 (latest)

spiral iron
#

heyo, just trying out bun after seeing the 1.0 announcement, im probably doing something wrong but when i try to install the nestjs cli tool with bun, i get

bun x -g @nestjs/cli
 6 | (function (LogLevel) {
 7 |     LogLevel[LogLevel["INFO"] = 1] = "INFO";
 8 |     LogLevel[LogLevel["WARN"] = 2] = "WARN";
 9 |     LogLevel[LogLevel["ERROR"] = 3] = "ERROR";
10 | })(LogLevel || (LogLevel = {}));
11 | const stderrConsole = new console_1.Console(process.stderr);
                          ^
TypeError: undefined is not a constructor (evaluating 'new console_1.Console(process.stderr)')
      at /mnt/c/Users/Nathan/AppData/Roaming/npm/node_modules/@nestjs/cli/node_modules/tsconfig-paths-webpack-plugin/lib/logger.js:11:22
      at globalThis (/mnt/c/Users/Nathan/AppData/Roaming/npm/node_modules/@nestjs/cli/node_modules/tsconfig-paths-webpack-plugin/lib/logger.js:40:21)
      at require (:1:20)
      (traceback was to long to send in a message)
error: "nest" exited with code 1 (SIGHUP)

same result is i just do
bun x nest

marble bluff
#

not sure what that -g argument does, but for me it results in this error ```
error: unknown option '-g'

doing `bun x @nestjs/cli` works fine
daring sandal
#

I think they're trying to install it globally