---
title: "#182: Why and how to deal with unhandled Promise rejections"
publication: "Node Weekly"
issue: 182
published_at: "2017-04-06"
canonical_url: "https://nodeweekly.com/issues/182"
---

#182: Why and how to deal with unhandled Promise rejections

This week's Node news[Read this e-mail on the Web](http://nodeweekly.com/issues/182)

Node WeeklyApril 6, 2017 #182 Valeri Karpov 

[Why and How to Deal with Unhandled Promise Rejections](http://thecodebarbarian.com/unhandled-promise-rejections-in-node.js.html)If you use Node 6.6+ you may have seen _“Unhandled promise rejections are deprecated”_ cropping up. What does it mean and why does it matter?
 Alex Sapoznikov 

[A Starter Kit for Building Amazon Alexa Skills with Node](https://github.com/AlexSapoznikov/node-alexa-starter-kit)Want to chat with your Node app? This gives you everything you need to copy/paste to Amazon to get an Alexa skill working, organizes your code, and supports deploying to AWS Lambda.
 SitePoint 

[A Simple Introduction to the Node Debugger](https://www.sitepoint.com/debugging-javascript-node-debugger/)An introductory walk through of using Node’s built-in debugging utility to hunt down bugs in both server and client-side code.
 herokuSponsor

[Lock It in with Yarn for Deterministic Dependency Resolution](https://blog.heroku.com/yarn-deterministic-dependency-resolution?c=7013A000000u06SQAQ&utm_campaign=Display%20-%20Endemic%20- Cooper%20- Node%20-%20Blog%20-%20Yarn&utm_medium=display&utm_source=cooperpress&utm_content=blog&utm_term=node)Learn how Yarn helps manage your dependencies so you don’t have to worry about dev prod parity. [Learn More](https://blog.heroku.com/yarn-deterministic-dependency-resolution?c=7013A000000u06SQAQ&utm_campaign=Display%20-%20Endemic%20-%20Cooper%20-%20Node%20-%20Blog%20-%20Yarn&utm_medium=display&utm_source=cooperpress&utm_content=blog&utm_term=node).

[![heroku\](https://copm.s3.amazonaws.com/510b89fb.png)](https://blog.heroku.com/yarn-deterministic-dependency-resolution?c=7013A000000u06SQAQ&utm_campaign=Display%20-%20Endemic%20- Cooper%20- Node%20-%20Blog%20-%20Yarn&utm_medium=display&utm_source=cooperpress&utm_content=blog&utm_term=node)
 Carlos Justiniano 

[Deploying Node Microservices Using Docker Swarm](https://community.risingstack.com/using-docker-swarm-for-deploying-nodejs-microservices/)A walkthrough of creating a Docker Swarm cluster from the command line, and then deploying multiple load balanced services to it.
 Matthias Etienne 

[Caporal.js: A Framework for Building Command Line Apps](https://github.com/mattallty/Caporal.js)Out of the box you get help generation, colored output, coercion and casting, typo suggestions, and auto-complete for Bash and Zsh.
 RisingStack 

[Real Life Debugging of Node.js Issues in Production](https://blog.risingstack.com/node-js-war-stories-solving-issues-in-production-2/)Brief debugging stories from Netflix, RisingStack and nearForm.
 Node.js Foundation 

[Node Gets N-API, an ABI-Stable Native API Layer](https://github.com/nodejs/node/commit/56e881d0b0b2997b518753cb627eb3b50eeb6f62)It won’t affect _most_ Node developers but N-API aims to provide a stable Node API for native module developers and this is a key step forward. Currently an ‘experimental feature’ only while work continues.


In Brief

- [StandardJS 10.0.0 Released: JS Code Standards and Linter](https://standardjs.com/changelog.html#1000---2017-04-04) news 
Using deprecated Node.js APIs is now considered an error.
- [Node v6.10.2 (LTS) and v4.8.2 (Maintenance) Released](https://nodejs.org/en/blog/release/v6.10.2/) news 
Fixes a crypto-related memory leak that was fixed in 7.x last week. [4.8.2 here.](https://nodejs.org/en/blog/release/v4.8.2/) Node.js Foundation
- [NodeSource Makes arm64 Node Packages Available](https://nodesource.com/blog/announcing-arm64-support-in-our-node-js-package-repositories) news Chris Lea
- [Buffers Will Be Zero Filled By Default in Node 8+](https://github.com/nodejs/node/commit/7eb1b4658ec8c7c4e16ecf8345aea4fccdac3891) news Node.js Foundation
- [Why Developers Are Replacing npm With Yarn](https://circleci.com/blog/why-are-developers-moving-to-yarn/?utm_source=cooperpress&utm_medium=newsletter&utm_content=node-weekly) 
Yarn solves many npm problems and is simple to implement. View CircleCI's npm to Yarn command cheatsheet, plus discussion. CircleCISponsor
- [Configuring .npmrc for an Optimal Node Environment](https://nodesource.com/blog/configuring-your-npmrc-for-an-optimal-node-js-environment) tutorial 
A few things you can do with your .npmrc file to speed up your Node workflow. Tierney Cyren
- [Deploy a Couchbase + Node Webapp as Docker Containers](https://blog.couchbase.com/deploy-node-js-couchbase-web-application-docker-containers/) tutorial Nic Raboy
- [How to Mock Data for Node Apps with Faker.js](https://hackernoon.com/how-to-mock-data-for-node-js-applications-using-faker-js-b1f4c0e78102) tutorial Aman Mittal
- [No Local Node User Group? Here's How to Start Your Own](https://medium.com/the-node-js-collection/how-to-start-a-node-js-user-group-e17399d213b1) tutorial David Fekke
- [Using require.resolve() To Calculate Module-Relative File Paths](https://www.bennadel.com/blog/3243-using-require-resolve-to-calculate-module-relative-file-paths-in-node-js.htm) tutorial Ben Nadel
- [Basic Web Scraping from Node with X-Ray](https://www.youtube.com/watch?v=-lEEEi-0Fqc) video 
[X-Ray](https://github.com/lapwinglabs/x-ray) makes it easy to grab pages, grab certain elements, handle pagination, etc. Paul Halliday
- [20 Things to Consider When Creating Your First Node App](https://www.heartinternet.uk/blog/20-things-to-consider-when-creating-your-first-node-js-application/) opinion Zell Liew
- [Catch Errors Before Your Users Do 💻](https://rollbar.com/nodeweekly) tools 
Automatically know what’s broken and why. Rollbar instantly detects and alerts you (Slack, HipChat, Email) when code breaks. Get the stack trace, code, user data to help you defeat Node errors. ROLLBARSponsor
- [eslint-plugin-security: ESLint Rules for Node Security](https://github.com/nodesecurity/eslint-plugin-security) tools 
Helps to identify potential security hotspots. The Node Security Platform
- [nbind: Headers to Make a C++11 Lib Accessible from Node](https://github.com/charto/nbind#readme) tools BusFaster Ltd
- [node-cctz: Fast Absolute and Civil Time Translation](https://github.com/floatdrop/node-cctz) code 
Written in C++11 and wraps Google’s [cctz](https://github.com/google/cctz/) library. Vsevolod Strukchinsky
- [ASCII-Video: Create and Play Sprite Animations at the Terminal](https://github.com/fossage/ASCII-Video) code Justin Foss
- [Get Your Next Node Job Faster. Get Access to 6,000 Companies.](https://hired.com/join/?utm_source=petercooperpress&utm_medium=sponsor&utm_campaign=%28b2c%29%28l-all%29%28r-swe%29%28q2-17-node-weekly%29&utm_content=newsletter) 
Say goodbye to the pain of job hunting. Get Hired today HiredSponsor

Node Weekly is curated by [Peter Cooper](https://twitter.com/peterc) and published by [Cooperpress](https://cooperpress.com/).

Want to sponsor an issue? See our [media kit.](https://cooperpress.com/mediakit)
Want to post a job? E-mail us or [use our self-serve system.](https://booking.cooperpress.com/jobs)

[Unsubscribe](*|UNSUB|*) : [Change email address](*|UPDATE_PROFILE|*) : [Read this issue on the Web](http://nodeweekly.com/issues/182)

© Cooperpress Ltd. Office 30, Lincoln Way, Louth, LN11 0LS, UK
[Email policy](https://cooperpress.com/spam.html) [Privacy policy](https://cooperpress.com/privacy.html)
