question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: opts.memlimit must be at least MEMLIMIT_MIN (undefined)

See original GitHub issue

I’m having this error only in node 9. I’ve recently updated to node stable and a project using this module started to crash. Here is the full stacktrace of the error

/home/yerko/Dev/kids/node_modules/nanoassert/index.js:21
  if (!t) throw new Error(m || 'AssertionError')
          ^

Error: opts.memlimit must be at least MEMLIMIT_MIN (undefined)
    at assert (/home/yerko/Dev/kids/node_modules/nanoassert/index.js:21:17)
    at new SecurePassword (/home/yerko/Dev/kids/node_modules/secure-password/index.js:30:3)
    at SecurePassword (/home/yerko/Dev/kids/node_modules/secure-password/index.js:24:49)
    at Object.<anonymous> (/home/yerko/Dev/kids/routes/teachers/create.js:2:11)
    at Module._compile (module.js:641:30)
    at Object.Module._extensions..js (module.js:652:10)
    at Module.load (module.js:560:32)
    at tryModuleLoad (module.js:503:12)
    at Function.Module._load (module.js:495:3)
    at Module.require (module.js:585:17)

As you can see the error happens in line 30 and it seems to be beacause MEMLIMIT_MIN (sodium.crypto_pwhash_MEMLIMIT_MIN) is not defined in node 9

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
emilbayescommented, Nov 6, 2017

I will investigate, but I’m pretty sure the issue is in sodium-native and not secure password 😃 I will figure out a fix either way!

0reactions
emilbayescommented, Dec 25, 2017

@kelden This is here now in secure-password@3.0.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

PH18291: SPECIFY MEMLIMIT FOR IRLM ADDRESS APACE ...
MLT specified for IRLM must be at least the 2GB minimum. If both MLT and the Job Statement MEMLIMIT are specified, the MLT...
Read more >
elFinder/elFinderVolumeDriver.class.php at master - GitHub
Open-source file manager for web, written in JavaScript using jQuery and jQuery UI - elFinder/elFinderVolumeDriver.class.php at master · Studio-42/elFinder.
Read more >
MEM_LIMIT Query Option - Apache Impala
The MEM_LIMIT query option is usually expressed as a fixed size such as 10gb , and must always be less than the impalad...
Read more >
Parallels Python API Reference Virtualization SDK Manual ...
For simplicity, no error checking is implemented in the sample code below. When writing your own program, the error checking should be properly...
Read more >
Last fixes · 3323b45943 - ave-cms - GitGet
Last fixes. master. M@d D3n 5 years ago. parent. 315d1fded7. commit. 3323b45943. 93 changed files with 8740 additions and 3764 deletions. Whitespace.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found