Title: 'socket npm' overrides NODE_OPTIONS · Issue #1036 · SocketDev/socket-cli · GitHub
Open Graph Title: 'socket npm' overrides NODE_OPTIONS · Issue #1036 · SocketDev/socket-cli
X Title: 'socket npm' overrides NODE_OPTIONS · Issue #1036 · SocketDev/socket-cli
Description: To demo, in package.json: "scripts": { "echo": "echo $NODE_OPTIONS", } Running npm directly: ➜ NODE_OPTIONS=test npm run echo > echo > echo $NODE_OPTIONS test Running with socket-cli: ➜ NODE_OPTIONS=test socket npm run echo _____ _ _ /--...
Open Graph Description: To demo, in package.json: "scripts": { "echo": "echo $NODE_OPTIONS", } Running npm directly: ➜ NODE_OPTIONS=test npm run echo > echo > echo $NODE_OPTIONS test Running with socket-cli: ➜ NODE_OPTION...
X Description: To demo, in package.json: "scripts": { "echo": "echo $NODE_OPTIONS", } Running npm directly: ➜ NODE_OPTIONS=test npm run echo > echo > echo $NODE_OPTIONS test Ru...
Opengraph URL: https://github.com/SocketDev/socket-cli/issues/1036
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"'socket npm' overrides NODE_OPTIONS","articleBody":"To demo, in package.json:\n\n```js\n \"scripts\": {\n \"echo\": \"echo $NODE_OPTIONS\",\n }\n```\n\nRunning npm directly:\n\n```\n➜ NODE_OPTIONS=test npm run echo\n\n\u003e echo\n\u003e echo $NODE_OPTIONS\n\ntest\n```\n\nRunning with socket-cli:\n\n```\n➜ NODE_OPTIONS=test socket npm run echo\n _____ _ _ /---------------\n | __|___ ___| |_ ___| |_ | CLI: v1.1.34\n |__ | . | _| '_| -_| _| | token: (not set), org: (not set)\n |_____|___|___|_,_|___|_|.dev | Command: `socket npm`, cwd: ~/.../\n\n\n\u003e echo\n\u003e echo $NODE_OPTIONS\n\n'--permission --allow-child-process --allow-fs-read=* --allow-fs-write=/home/.../* --allow-fs-write=/home/.../npm-installation/* --allow-fs-write=/home/.../.npm/*'\n```\n\nThis makes it impossible to use `socket npm` as a drop in replacement if you configure NODE_OPTIONS globally, since any such kind of configuration is ignored.\n\nImo Socket should include globally set options in addition to it's own additions - it shouldn't replace them entirely.","author":{"url":"https://github.com/pimterry","@type":"Person","name":"pimterry"},"datePublished":"2026-01-12T10:13:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1036/socket-cli/issues/1036"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4cd739db-f12f-348c-a019-69196bf39fe5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D2F6:2D9AC6:A3BB55C:DA5B64B:696E2A72 |
| html-safe-nonce | b311c732152eb6e297fe9b51946377ef9c850e5b9d69f8c5898057866ca53efb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkY2OjJEOUFDNjpBM0JCNTVDOkRBNUI2NEI6Njk2RTJBNzIiLCJ2aXNpdG9yX2lkIjoiNjkzNTQyNjk5OTk0NTkzMTM3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 01f8fe998231d13c191ad32241817205bbf21796899a0076481f80fcf5aa6554 |
| hovercard-subject-tag | issue:3803628053 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/SocketDev/socket-cli/1036/issue_layout |
| twitter:image | https://opengraph.githubassets.com/11f244c16f3f2fd997be746c5ce90f844939f3605b20c766b397d2824e65af23/SocketDev/socket-cli/issues/1036 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/11f244c16f3f2fd997be746c5ce90f844939f3605b20c766b397d2824e65af23/SocketDev/socket-cli/issues/1036 |
| og:image:alt | To demo, in package.json: "scripts": { "echo": "echo $NODE_OPTIONS", } Running npm directly: ➜ NODE_OPTIONS=test npm run echo > echo > echo $NODE_OPTIONS test Running with socket-cli: ➜ NODE_OPTION... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pimterry |
| hostname | github.com |
| expected-hostname | github.com |
| None | 878b142339d396b81902fd0c6d3f2f41511e1864f596c5a601660d91d0d60e59 |
| turbo-cache-control | no-preview |
| go-import | github.com/SocketDev/socket-cli git https://github.com/SocketDev/socket-cli.git |
| octolytics-dimension-user_id | 69326764 |
| octolytics-dimension-user_login | SocketDev |
| octolytics-dimension-repository_id | 554765897 |
| octolytics-dimension-repository_nwo | SocketDev/socket-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 554765897 |
| octolytics-dimension-repository_network_root_nwo | SocketDev/socket-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 20fb42f07915f87665e5bccffc415f231d50cfac |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width