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.

`ionic start` gives `RangeError [ERR_OUT_OF_RANGE]: The value of "err" is out of range.` error

See original GitHub issue

Description:

Running ionic start throws the following error:

util.js:220
    throw new ERR_OUT_OF_RANGE('err', 'a negative integer', err);
    ^

RangeError [ERR_OUT_OF_RANGE]: The value of "err" is out of range. It must be a negative integer. Received 536870174
    at Object.getSystemErrorName (util.js:220:11)
    at exceptionWithHostPort (internal/errors.js:495:21)
    at internalConnect (net.js:907:16)
    at defaultTriggerAsyncIdScope (internal/async_hooks.js:301:12)
    at GetAddrInfoReqWrap.emitLookup [as callback] (net.js:1050:9)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:65:10) {
  code: 'ERR_OUT_OF_RANGE'

Steps to Reproduce & Output:

> ionic start

Every great app needs a name! 😍

Please enter the full name of your app. You can change this at any time. To bypass this prompt next time, supply name,
the first argument to ionic start.

? Project name: testApp

Pick a framework! 😁

Please select the JavaScript framework to use for your new app. To bypass this prompt next time, supply a value for the
--type option.

? Framework: Angular

Let's pick the perfect starter template! 💪

Starter templates are ready-to-go Ionic apps that come packed with everything you need to build your app. To bypass this
prompt next time, supply template, the second argument to ionic start.

? Starter template: tabs
✔ Preparing directory ./testApp - done!
⠹ Downloading and extracting tabs starter 
util.js:220
    throw new ERR_OUT_OF_RANGE('err', 'a negative integer', err);
    ^

RangeError [ERR_OUT_OF_RANGE]: The value of "err" is out of range. It must be a negative integer. Received 536870174
    at Object.getSystemErrorName (util.js:220:11)
    at exceptionWithHostPort (internal/errors.js:495:21)
    at internalConnect (net.js:907:16)
    at defaultTriggerAsyncIdScope (internal/async_hooks.js:301:12)
    at GetAddrInfoReqWrap.emitLookup [as callback] (net.js:1050:9)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:65:10) {
  code: 'ERR_OUT_OF_RANGE'
}

My ionic info:

[WARN] You are not in an Ionic project directory. Project context may be missing.

Ionic:

   Ionic CLI : 5.4.4

Utility:

   cordova-res : not installed
   native-run  : 0.2.9 

System:

   NodeJS : v12.12.0
   npm    : 6.11.3
   OS     : macOS Catalina

Other Information:

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
OJ7commented, Oct 22, 2019

Older versions of Node didn’t fix it.

However, I realized I recently installed a LuLu, a firewall app. Even though it isn’t blocking anything, it seems that by disabling it the problem is fixed! Thanks for the lead! Hopefully this helps others who run into this issue as I didn’t find any relevant issues when searching for the error.

1reaction
imhoffdcommented, Oct 22, 2019

Yeah, unfortunately network proxies can yield lots of weird, incomprehensible errors. It’s the first question I ask.

Glad you got it working!

Read more comments on GitHub >

github_iconTop Results From Across the Web

RangeError [ERR_OUT_OF_RANGE] - ionic-v3
I use the command: ionic cordova run ios --livereload [native-run ios --app ... [ERR_OUT_OF_RANGE]: The value of "offset" is out of range.
Read more >
node.js - RangeError [ERR_OUT_OF_RANGE]: The value of ...
The solution to the above create error is to use bulkCreate and pass it an array of objects. If you are doing updates...
Read more >
Ionic 4 & Angular Tutorial For Beginners - Crash Course
Learn to build iOS, Android and web apps from scratch with Ionic 4 and Angular!Join the full Ionic + Angular course: ...
Read more >
Ionic + React - Tutorial for Beginners - YouTube
Build cross-platform applications with React.js and the Ionic framework.
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