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.

Regression: Hawk update broke compatibility with Node 6.10

See original GitHub issue

For some reason that I don’t quite understand, npm in Node6 completely ignores the fact that sntp package.json has "node": ">=8.9.0" in it and installs this very version as a dependency of updated hawk. 30 minutes ago you updated request and my app has completely gone out of production with SyntaxError: exports.time = async function (options = {} ) {

The problem is, I don’t install request directly, it is installed as a dependency of another package I have no control over. And it requires "request": "^2.53.0". Also I cannot change node version, since 6.10 is the latest available in AWS Lambda.

I really have no idea how to fix this on my end. Please help…

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:70
  • Comments:30 (4 by maintainers)

github_iconTop GitHub Comments

33reactions
simovcommented, Mar 12, 2018

v2.85.0 is published

28reactions
simovcommented, Mar 12, 2018

I’ve reverted the update to Hawk 7.x and hopefully this is going to fix the issue, because right now the tests on TravisCI are failing for Node >= v8 for some reason, the tests for Node < v8 are failing because of sntp dev dep, and locally the test are failing for yet another reason … Anyway will publish a new version shortly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

T189451 Jenkins fails to merge a patch with "Unexpected ...
... Regression: Hawk update broke compatibility with Node 6.10 ... master, +1 -0, WIP Jenkins fails to merge a patch with "Unexpected token...
Read more >
Node.js 6.10.2 Release Brief - NodeSource
This is a special, expedited release for the Node 6 LTS line containing important fixes for recent regressions, including a crypto-related ...
Read more >
node.js - Windows 11 update broke network access for nodejs ...
First I noticed that all npm commands would fail with ECONNRESET when trying to reach registry.npmjs.org . Running npm from a VM or...
Read more >
How can I update NodeJS and NPM to their latest versions?
npm update -g npm. See the docs for the update command: ... Sometimes, versions discrepancy may cause incompatibility errors.
Read more >
Download & Update Node.js to the Latest Version! Node v19 ...
Direct download links to update to the latest Node.js versions: Node v19.0.0 / LTS ... New globally available browser-compatible APIs.
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