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

Required packages rimraf and tmsc not found while running boost deploy command #1378

Open
mnlx opened this issue Mar 15, 2023 · 1 comment
Open
Labels
bug Something isn't working dev-experience Developer Experience difficulty: low good first issue Good for newcomers package:cli Affects the CLI package platform: Linux platform: MacOS platform: Windows size: S Tasks that involve two or three lines of code

Comments

@mnlx
Copy link
Collaborator

mnlx commented Mar 15, 2023

Bug Report

Current Behavior

I'm following the booster framework getting started tutorial and running on a barebones newly deployed system. Everything is working as expected, except when I get to part 6.2 and run the command: boost deploy -e production which returns the following error:

[2023-03-15T14:09:29.295Z] boost deploy -e production
[2023-03-15T14:09:29.295Z] Error: �[38;2;250;110;89m[ChildProcessError] Project contains compilation errors:�[39m
[2023-03-15T14:09:29.295Z] Command failed: npm run clean
[2023-03-15T14:09:29.295Z] sh: 1: rimraf: not found
[2023-03-15T14:09:29.295Z] npm ERR! code ELIFECYCLE
[2023-03-15T14:09:29.295Z] npm ERR! syscall spawn
[2023-03-15T14:09:29.295Z] npm ERR! file sh
[2023-03-15T14:09:29.295Z] npm ERR! errno ENOENT
[2023-03-15T14:09:29.295Z] npm ERR! [email protected] clean: `rimraf ./dist tsconfig.tsbuildinfo`
[2023-03-15T14:09:29.295Z] npm ERR! spawn ENOENT
[2023-03-15T14:09:29.295Z] npm ERR! 
[2023-03-15T14:09:29.295Z] npm ERR! Failed at the [email protected] clean script.
[2023-03-15T14:09:29.295Z] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[2023-03-15T14:09:29.295Z] 
[2023-03-15T14:09:29.295Z] npm ERR! A complete log of this run can be found in:
[2023-03-15T14:09:29.295Z] npm ERR!     /home/mo/.npm/_logs/2023-03-15T14_09_29_279Z-debug.log
[2023-03-15T14:09:29.295Z]  `npm run clean` (exited with error code 1)
[2023-03-15T14:09:29.295Z]     at /usr/lib/node_modules/@boostercloud/cli/dist/common/errors.js:18:12
[2023-03-15T14:09:29.295Z]     at /usr/lib/node_modules/@boostercloud/cli/node_modules/@effect-ts/system/Effect/orDieWith.js:33:56
[2023-03-15T14:09:29.295Z]     at Object.fold_ (/usr/lib/node_modules/@boostercloud/cli/node_modules/@effect-ts/system/Either/core.js:417:23)
[2023-03-15T14:09:29.295Z]     at HandlerFrame.apply (/usr/lib/node_modules/@boostercloud/cli/node_modules/@effect-ts/system/Effect/foldM.js:33:52)
[2023-03-15T14:09:29.295Z]     at FiberContext.nextInstr (/usr/lib/node_modules/@boostercloud/cli/node_modules/@effect-ts/system/Fiber/context.js:391:16)
[2023-03-15T14:09:29.295Z]     at FiberContext.evaluateNow (/usr/lib/node_modules/@boostercloud/cli/node_modules/@effect-ts/system/Fiber/context.js:870:40)
[2023-03-15T14:09:29.295Z]     at /usr/lib/node_modules/@boostercloud/cli/node_modules/@effect-ts/system/Fiber/context.js:558:47
[2023-03-15T14:09:29.295Z]     at /usr/lib/node_modules/@boostercloud/cli/node_modules/@effect-ts/system/Support/Scheduler/index.js:20:22
[2023-03-15T14:09:29.295Z]     at processTicksAndRejections (internal/process/task_queues.js:95:5)

also happened to ttsc command:

[2023-03-15T14:23:18.964Z] sh: 1: ttsc: not found

Expected behavior

Booster should run the deployment and build the required resources in AWS.

Possible Solution

The issue seems to be with not having rimraf or ttsc installed in the system. Not that familiar with node, but shouldn't they run from local binaries in node_modules/.bin? When I installed them globally usin npm i -g, the command started working.

Environment

  • Booster version: @boostercloud/cli/1.7.0 wsl-x64 node-v14.21.3
  • Node/npm version: Node 14/npm 7
  • OS: Windows 11 (running in WSL 2 Ubuntu-22.04)
@NickSeagull NickSeagull added bug Something isn't working good first issue Good for newcomers size: S Tasks that involve two or three lines of code package:cli Affects the CLI package platform: Windows platform: MacOS platform: Linux dev-experience Developer Experience difficulty: low labels Mar 30, 2023
@ShyanRoyChoudhury
Copy link

Hi. Would love to fix this. Can I get it assigned to me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dev-experience Developer Experience difficulty: low good first issue Good for newcomers package:cli Affects the CLI package platform: Linux platform: MacOS platform: Windows size: S Tasks that involve two or three lines of code
Projects
Development

No branches or pull requests

3 participants