Skip to content

docs(install): clarify global Socket installs across Node versions - #1800

Merged
John-David Dalton (jdalton) merged 1 commit into
v1.xfrom
docs/1517-npm-global-install
Dec 2, 2026
Merged

John-David Dalton (jdalton) merged 1 commit into
v1.xfrom
docs/1517-npm-global-install

Conversation

@jdalton

@jdalton John-David Dalton (jdalton) commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

The README explains how to make socket available in the active Node installation. Run npm install -g socket after selecting a Node version with fnm, mise, or nvm. Switching Node installations can change which global commands the shell can find.

The report showed npm i g socket. Both socket and @socketsecurity/cli at 1.1.160, the latest version when the report was filed, created the socket command in clean global installs with -g. The reporter’s exact environment has yet to be reproduced.

Reported in SocketDev/socket-cli#1517

@cursor

cursor Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Docs plus release validation only; no runtime CLI behavior changes.

Overview
Documents global install behavior in the README: the -g flag is required (avoiding npm i g socket), and nvm users must reinstall or reactivate the Node version where Socket was installed globally.

The release tarball smoke test now requires @socketsecurity/cli to expose both cli and socket in package.json bin, not only the scoped package’s short name. Error messages list the missing executables. A unit test covers failure when only cli is present.

Reviewed by Cursor Bugbot for commit fbfa06c. Configure here.

@jdalton John-David Dalton (jdalton) changed the title Clarify npm global installation for Socket CLI docs(install): clarify npm global installation Dec 2, 2026
@jdalton
John-David Dalton (jdalton) force-pushed the docs/1517-npm-global-install branch 4 times, most recently from 4f24fa0 to ae12df2 Compare December 2, 2026 00:56
@jdalton John-David Dalton (jdalton) changed the title docs(install): clarify npm global installation fix(release): catch a missing socket executable in the scoped CLI tarball Dec 2, 2026
@jdalton John-David Dalton (jdalton) changed the title fix(release): catch a missing socket executable in the scoped CLI tarball docs(install): clarify global Socket installs across Node versions Dec 2, 2026
@jdalton John-David Dalton (jdalton) changed the title docs(install): clarify global Socket installs across Node versions test(release): verify the socket alias and clarify global installs Dec 2, 2026
@jdalton John-David Dalton (jdalton) changed the title test(release): verify the socket alias and clarify global installs docs(install): clarify global Socket installs across Node versions Dec 2, 2026
Explain how to install Socket globally with npm and restore the command after switching Node versions.

Assisted-by: Codex:GPT-6-Luna
@jdalton
John-David Dalton (jdalton) merged commit 117b64c into v1.x Dec 2, 2026
23 checks passed
@jdalton
John-David Dalton (jdalton) deleted the docs/1517-npm-global-install branch December 2, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants