Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Socket CLI errror missing tiny-updater dependency #279

Open
aarongoldenthal opened this issue Dec 26, 2024 · 1 comment
Open

Socket CLI errror missing tiny-updater dependency #279

aarongoldenthal opened this issue Dec 26, 2024 · 1 comment

Comments

@aarongoldenthal
Copy link

The Socket CLI for a number of releases has generated the following error and failed to generate a report (seen in all of my Node projects). From the package.json definition, tiny-updater appears to be in devDependencies, not dependencies, but is used in the socket command entrypoint.

$ npm i -g @socketsecurity/[email protected]
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
added 719 packages in 38s
117 packages are looking for funding
  run `npm fund` for details
$ socket report create . --view
node:internal/modules/cjs/loader:1252
  throw err;
  ^
Error: Cannot find module 'tiny-updater'
Require stack:
- /usr/local/lib/node_modules/@socketsecurity/cli/dist/module-sync/cli.js
    at Function._resolveFilename (node:internal/modules/cjs/loader:1249:15)
    at Function._load (node:internal/modules/cjs/loader:1075:27)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:[21](https://gitlab.com/gitlab-ci-utils/tests/node-cjs-test/-/jobs/8726909343#L21)9:24)
    at Module.require (node:internal/modules/cjs/loader:1340:12)
    at require (node:internal/modules/helpers:138:16)
    at Object.<anonymous> (/usr/local/lib/node_modules/@socketsecurity/cli/dist/module-sync/cli.js:15:37)
    at Module._compile (node:internal/modules/cjs/loader:1565:14)
    at Object..js (node:internal/modules/cjs/loader:1708:10)
    at Module.load (node:internal/modules/cjs/loader:1318:32) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/usr/local/lib/node_modules/@socketsecurity/cli/dist/module-sync/cli.js'
  ]
}
Node.js v[22](https://gitlab.com/gitlab-ci-utils/tests/node-cjs-test/-/jobs/8726909343#L22).12.0
@DemonBarber1020
Copy link

The Socket CLI for a number of releases has generated the following error and failed to generate a report (seen in all of my Node projects). From the package.json definition, tiny-updater appears to be in devDependencies, not dependencies, but is used in the socket command entrypoint.

$ npm i -g @socketsecurity/[email protected]
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
added 719 packages in 38s
117 packages are looking for funding
  run `npm fund` for details
$ socket report create . --view
node:internal/modules/cjs/loader:1252
  throw err;
  ^
Error: Cannot find module 'tiny-updater'
Require stack:
- /usr/local/lib/node_modules/@socketsecurity/cli/dist/module-sync/cli.js
    at Function._resolveFilename (node:internal/modules/cjs/loader:1249:15)
    at Function._load (node:internal/modules/cjs/loader:1075:27)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:[21](https://gitlab.com/gitlab-ci-utils/tests/node-cjs-test/-/jobs/8726909343#L21)9:24)
    at Module.require (node:internal/modules/cjs/loader:1340:12)
    at require (node:internal/modules/helpers:138:16)
    at Object.<anonymous> (/usr/local/lib/node_modules/@socketsecurity/cli/dist/module-sync/cli.js:15:37)
    at Module._compile (node:internal/modules/cjs/loader:1565:14)
    at Object..js (node:internal/modules/cjs/loader:1708:10)
    at Module.load (node:internal/modules/cjs/loader:1318:32) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/usr/local/lib/node_modules/@socketsecurity/cli/dist/module-sync/cli.js'
  ]
}
Node.js v[22](https://gitlab.com/gitlab-ci-utils/tests/node-cjs-test/-/jobs/8726909343#L22).12.0

#279 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants