Title: socket npm cannot execute npm installed via mise · Issue #946 · SocketDev/socket-cli · GitHub
Open Graph Title: socket npm cannot execute npm installed via mise · Issue #946 · SocketDev/socket-cli
X Title: socket npm cannot execute npm installed via mise · Issue #946 · SocketDev/socket-cli
Description: mise puts node and npm file pointing like ~/.local/share/mise/installs/node/22.21.1/bin/npm which is a shell script :( #!/usr/bin/env bash set -euo pipefail # This script wraps npm so to run `mise reshim` after global installs and uninst...
Open Graph Description: mise puts node and npm file pointing like ~/.local/share/mise/installs/node/22.21.1/bin/npm which is a shell script :( #!/usr/bin/env bash set -euo pipefail # This script wraps npm so to run `mise ...
X Description: mise puts node and npm file pointing like ~/.local/share/mise/installs/node/22.21.1/bin/npm which is a shell script :( #!/usr/bin/env bash set -euo pipefail # This script wraps npm so to run `mise ...
Opengraph URL: https://github.com/SocketDev/socket-cli/issues/946
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"socket npm cannot execute npm installed via mise","articleBody":"mise puts node and npm file pointing like `~/.local/share/mise/installs/node/22.21.1/bin/npm` \nwhich is a shell script :( \n\n```bash\n#!/usr/bin/env bash\nset -euo pipefail\n\n# This script wraps npm so to run `mise reshim` after global installs and uninstalls\n# Any other cases are passed-through to npm\n\nthis_dir=$(dirname \"${BASH_SOURCE[0]}\")\nplugin_name=$(basename \"$(dirname \"$this_dir\")\")\n\nthis_dir=$(cd \"$this_dir\" \u0026\u0026 pwd -P) # Normalizes the directory\n...\n```\n\nSo `socket npm` fails because it isn't a node script.\n\n```\n$ socket npm i\n _____ _ _ /---------------\n | __|___ ___| |_ ___| |_ | CLI: v1.1.38\n |__ | . | _| '_| -_| _| | token: (not set), org: (not set)\n |_____|___|___|_,_|___|_|.dev | Command: `socket npm`, cwd: **\n\n/Users/kesoji/.local/share/mise/installs/node/22.21.1/bin/npm:2\nset -euo pipefail\n ^^^^^^^^\n\nSyntaxError: Unexpected identifier 'pipefail'\n at wrapSafe (node:internal/modules/cjs/loader:1638:18)\n at Module._compile (node:internal/modules/cjs/loader:1680:20)\n at Object..js (node:internal/modules/cjs/loader:1839:10)\n at Module.load (node:internal/modules/cjs/loader:1441:32)\n at Function._load (node:internal/modules/cjs/loader:1263:12)\n at TracingChannel.traceSync (node:diagnostics_channel:328:14)\n at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)\n at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5)\n at node:internal/main/run_main_module:36:49\n\nNode.js v22.21.1\n```\n\nIs there any solution or workaround?","author":{"url":"https://github.com/kesoji","@type":"Person","name":"kesoji"},"datePublished":"2025-11-27T03:55:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/946/socket-cli/issues/946"}
| 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:25c5924d-f8fe-f6e7-1616-a411e9ae49ce |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8004:13F876:64D33BF:84C8844:696DB79E |
| html-safe-nonce | f63cd89346f842d21c9fc00f665ad4a044f5425dedd86da41b78005a30ed3c9d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDA0OjEzRjg3Njo2NEQzM0JGOjg0Qzg4NDQ6Njk2REI3OUUiLCJ2aXNpdG9yX2lkIjoiNjAzMDgwNDAzMTUzMTQ5NzM3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 86831da4c041489a54ae697cc8a9a449b005beb231a9bf64dab1181111fc5113 |
| hovercard-subject-tag | issue:3669767828 |
| 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/946/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9a949f1206e305a5c939f5325490e494884de5b3f2babc526987da95908c1e3c/SocketDev/socket-cli/issues/946 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9a949f1206e305a5c939f5325490e494884de5b3f2babc526987da95908c1e3c/SocketDev/socket-cli/issues/946 |
| og:image:alt | mise puts node and npm file pointing like ~/.local/share/mise/installs/node/22.21.1/bin/npm which is a shell script :( #!/usr/bin/env bash set -euo pipefail # This script wraps npm so to run `mise ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kesoji |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4922b452d03cd8dbce479d866a11bc25b59ef6ee2da23aa9b0ddefa6bd4d0064 |
| 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 | 7e5ae23c70136152637ceee8d6faceb35596ec46 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width