Skip to content

bug: Fix install script#12174

Open
rgildein wants to merge 1 commit intocontinuedev:mainfrom
rgildein:bug/install-script
Open

bug: Fix install script#12174
rgildein wants to merge 1 commit intocontinuedev:mainfrom
rgildein:bug/install-script

Conversation

@rgildein
Copy link
Copy Markdown

@rgildein rgildein commented Apr 18, 2026

The installation script failed to check if fnm binary is installed.

closes: #12173

Description

Installation script was failing to check if fnm binary was installed.

AI Code Review

  • Team members only: AI review runs automatically when PR is opened or marked ready for review
  • Team members can also trigger a review by commenting @continue-review

Checklist

  • I've read the contributing guide
  • The relevant docs, if any, have been updated or created
  • The relevant tests, if any, have been updated or created

Screen recording or screenshot

➜ cat ./continue-install.sh | bash

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
           Continue CLI Installer
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

==> Detected platform: darwin-arm64
==> Using shell profile: /Users/rgildein/.zshrc
==> Warning: Node.js is not installed
==> Installing fnm (Fast Node Manager)...
Downloading fnm using Homebrew...
Checking dependencies for the installation script...
Checking availability of curl... OK!
Checking availability of unzip... OK!
Checking availability of Homebrew (brew)... OK!
Warning: fnm 1.39.0 is already installed and up-to-date.
To reinstall 1.39.0, run:
  brew reinstall fnm
==> Installing Node.js v20.20.1...
Installing Node v20.20.1 (arm64)
00:00:01 ██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ 20.71 MiB/20.71 MiB (15.65 MiB/s, 0s)
Using Node v20.20.1
==> Node.js v20.20.1 installed
==> Installing @continuedev/cli...
==> @continuedev/cli installed!

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
==> Continue CLI installation complete!
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

==> Ready! Run: cn --help
~
➜ cn --version
1.5.45

Tests

Just manually tested.


Summary by cubic

Fixes the installer to correctly detect the fnm binary and prevent false “binary not found” errors during Node setup. Addresses #12173.

  • Bug Fixes
    • Detect fnm with command -v (before and after updating PATH) and only mark cleanup when missing, removing the hardcoded $FNM_INSTALL_DIR/fnm check.

Written for commit 21a2243. Summary will update on new commits.

@rgildein rgildein requested a review from a team as a code owner April 18, 2026 20:06
@rgildein rgildein removed the request for review from a team April 18, 2026 20:06
@rgildein rgildein requested a review from sestinj April 18, 2026 20:06
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Apr 18, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 18, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 1 file

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="extensions/cli/scripts/install.sh">

<violation number="1" location="extensions/cli/scripts/install.sh:194">
P1: Post-install validation checks the directory instead of the fnm executable, allowing false success when the binary is missing.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review, or fix all with cubic.

Comment thread extensions/cli/scripts/install.sh Outdated
The installation script failed to check if fnm binary is installed.

closes continuedev#12173

Signed-off-by: Robert Gildein <gildeinrobert@gmail.com>
@rgildein rgildein force-pushed the bug/install-script branch from e3f533e to 21a2243 Compare April 18, 2026 20:36
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Apr 18, 2026
@rgildein
Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Install script is not working due fnm binary

1 participant