Title: throws an error when running from the command line on osx · Issue #121 · ulid/javascript · GitHub
Open Graph Title: throws an error when running from the command line on osx · Issue #121 · ulid/javascript
X Title: throws an error when running from the command line on osx · Issue #121 · ulid/javascript
Description: both npx ulid and ulid (when installed globally) result in this error message: file:///Users/adamtaylor/.nvm/versions/node/v18.19.1/lib/node_modules/ulid/dist/cli.js:87 throw new ULIDError(ULIDErrorCode.PRNGDetectFailure, "Failed to find...
Open Graph Description: both npx ulid and ulid (when installed globally) result in this error message: file:///Users/adamtaylor/.nvm/versions/node/v18.19.1/lib/node_modules/ulid/dist/cli.js:87 throw new ULIDError(ULIDErro...
X Description: both npx ulid and ulid (when installed globally) result in this error message: file:///Users/adamtaylor/.nvm/versions/node/v18.19.1/lib/node_modules/ulid/dist/cli.js:87 throw new ULIDError(ULIDErro...
Opengraph URL: https://github.com/ulid/javascript/issues/121
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"throws an error when running from the command line on osx","articleBody":"both `npx ulid` and `ulid` (when installed globally) result in this error message:\n```\nfile:///Users/adamtaylor/.nvm/versions/node/v18.19.1/lib/node_modules/ulid/dist/cli.js:87\n throw new ULIDError(ULIDErrorCode.PRNGDetectFailure, \"Failed to find a reliable PRNG\");\n ^\n\nULIDError: Failed to find a reliable PRNG (PRNG_DETECT)\n at detectPRNG (file:///Users/adamtaylor/.nvm/versions/node/v18.19.1/lib/node_modules/ulid/dist/cli.js:87:11)\n at monotonicFactory (file:///Users/adamtaylor/.nvm/versions/node/v18.19.1/lib/node_modules/ulid/dist/cli.js:151:25)\n at file:///Users/adamtaylor/.nvm/versions/node/v18.19.1/lib/node_modules/ulid/dist/cli.js:192:17\n at ModuleJob.run (node:internal/modules/esm/module_job:195:25)\n at async ModuleLoader.import (node:internal/modules/esm/loader:336:24)\n at async loadESM (node:internal/process/esm_loader:34:7)\n at async handleMainPromise (node:internal/modules/run_main:106:12) {\n code: 'PRNG_DETECT'\n}\n\nNode.js v18.19.1\n```\n\ni'm on an M2 mac, and ulid works just fine when running in a node script instead of using the command line. i do have nvm installed, not sure if that's a factor somehow...","author":{"url":"https://github.com/EXC-BAD-ACCESS","@type":"Person","name":"EXC-BAD-ACCESS"},"datePublished":"2025-07-06T17:34:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/121/javascript/issues/121"}
| 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:9759695e-d6ce-de77-9600-c293302f76f7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B768:75777:CE16DD:115ED40:698F77F6 |
| html-safe-nonce | eead3d7ccd1166298baf503357536b4ed057f65450bee3386bcd67e19fc93a84 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzY4Ojc1Nzc3OkNFMTZERDoxMTVFRDQwOjY5OEY3N0Y2IiwidmlzaXRvcl9pZCI6IjUzOTcyNDY0NDY2MTI5NTA5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dcd443c3aca1dbe4bb03cdd5f04f6d01ca6e50938987ea5e5e09dabe2b419c66 |
| hovercard-subject-tag | issue:3206822591 |
| 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/ulid/javascript/121/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ecc3779ff221bd2c341b59af30578cba9750bbb3437a59ec47b75b2a7f29f4ef/ulid/javascript/issues/121 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ecc3779ff221bd2c341b59af30578cba9750bbb3437a59ec47b75b2a7f29f4ef/ulid/javascript/issues/121 |
| og:image:alt | both npx ulid and ulid (when installed globally) result in this error message: file:///Users/adamtaylor/.nvm/versions/node/v18.19.1/lib/node_modules/ulid/dist/cli.js:87 throw new ULIDError(ULIDErro... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | EXC-BAD-ACCESS |
| hostname | github.com |
| expected-hostname | github.com |
| None | a40913be56b49e6322246e4bcd65ab6ec4b458c6dca6b691d30419da1e5ee35e |
| turbo-cache-control | no-preview |
| go-import | github.com/ulid/javascript git https://github.com/ulid/javascript.git |
| octolytics-dimension-user_id | 33265518 |
| octolytics-dimension-user_login | ulid |
| octolytics-dimension-repository_id | 61051155 |
| octolytics-dimension-repository_nwo | ulid/javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 61051155 |
| octolytics-dimension-repository_network_root_nwo | ulid/javascript |
| 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 | ca6051e0ba2303370981e3d01e2bc1044eb3b429 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width