"Receiving ENOTFOUND error on running 'ionic start project test' due to github:443 not being found

I've been attempting to create an Ionic application but keep encountering the following error:

Command:- ionic create testapp sidemenu

Error: getaddrinfo ENOTFOUND github.com github.com:443

" Creating Ionic app in folder ~..\conference base d on sidemenu project Downloading: https://github.com/driftyco/ionic-app-base/archive/master.zip Error Initializing app: Error: getaddrinfo ENOTFOUND github.com github.com:443

Error: getaddrinfo ENOTFOUND github.com github.com:443
    at errnoException (dns.js:26:10)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:77:26)

getaddrinfo ENOTFOUND github.com github.com:443 (CLI v1.7.8)

Your system information:

Cordova CLI: 5.4.0
Ionic CLI Version: 1.7.8
Ionic App Lib Version: 0.6.4
OS: Windows 7 SP1
Node Version: v4.2.1

"

Please provide guidance on how to resolve this issue, as I am new to phonegap/ionic/nodejs development.

[EDIT] proxy configuration has already been successfully set up.

Answer №1

In order to run this command, you must ensure that your ionic version is up to date. It will not work with a CLI version lower than v1.7.10.

For further guidance, check out the tutorial here: https://example.com/tutorial

Answer №2

I encountered the same issue and tried setting proxy and http-proxy for npm, but the problem persisted. I managed to resolve this by configuring the proxy in the ionic module as detailed in this guide

All that was needed was to insert the following line at around line number 421 (just before tunnel creation in the code) in require.js to set the proxy and enable Ionic CLI to work smoothly:

// hack to add proxy
    self.proxy = 'http://proxy-ip:proxy-port';

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Error: Unrecognized error encountered while using Angularjs/Ionic: Property 'then' cannot be read as it is undefined

codes: js: angular.module('starter.services', ['ngResource']) .factory('GetMainMenu',['$http','$q','$cacheFactory',function($http,$q,$cacheFactory) { var methodStr = 'JSONP' ...

Get the cookies from the NodeJs API using Next.js version 13.4

Could you please review my code? I have a Next.js and Node API app, and I'm facing an issue with obtaining the cookie from my API in my Next app. The signInUser API that I created should return a generated JWT cookie. However, when I use it in my Next ...

Retrieve information stored in cookies beyond the component's scope

I've developed a Next.js application with Strapi serving as both the CMS and authentication server. After successfully obtaining a JWT from the authentication endpoint, I have stored it in a cookie. To access secure content from Strapi, I must include ...

Guide to using Node.js to efficiently add documents to several collections in a single query

I am exploring the possibility of inserting documents into multiple collections with a single query. Let's say I have two collections named person and address. My goal is to insert documents into both collections using just one query. Specifically, d ...

Automating without a head using Node.js and the Selenium Webdriver

Currently, I am in the process of working with an automation tool that needs to be deployed within an Ubuntu server. My main query pertains to the possibility of utilizing Chrome silently with Selenium Webdriver. Despite attempting the code provided below ...

Unable to post data in Node.js Express

When I try to submit my form from new.js, I encounter the following error: Cannot POST /campgrounds/5b0d6eb8a0f5990b452e8212/comments In the case where I have another Post Route that works properly, it suggests that there are no issues with my body-parse ...

Exploring the capabilities of Mongoose with nesting documents and seamless read/write operations

A puzzling situation has arisen that is truly testing my patience. It should be a simple task, I hope. All I want to do is reuse a model in an array, like a recursive model definition. Here is the model in question: var mongoose = require("mongoose"); va ...

What could be the reason for Express not setting the JSON content type?

I have utilized Express on numerous occasions in the past, and I do not recall encountering this particular issue before. It seems like there might be a mistake on my end, but I am struggling to identify what exactly that could be. My objective is quite s ...

The npm command returns an error message stating "Either an insufficient amount of arguments were provided or no matching entry was found."

I'm trying to pass a custom flag from an npm script to my webpack config, but I keep encountering the following error in the logs: Insufficient number of arguments or no entry found. Alternatively, run 'webpack(-cli) --help' for usage info. ...

Providing arguments to mocha while executing through npm

I'm currently setting up nyc/mocha for my project and I need to pass the --exit option to mocha when running it with or without nyc. Below is a snippet from my package.json file: "scripts": { "start": "node ./app", "test": "./node_modules/.b ...

"Encountering an Invalid Grant Problem with Xero API Integration in NodeJS

I am currently developing an application for Xero using NodeJS and the xero-node module. Interestingly, all my requests for a refresh token are returning as "invalid grant" for some unknown reason. I even tried adjusting the code to immediately fetch the ...

Is there a way to retrieve bookmarks (TOC) from a PDF document using technologies such as NodeJS, ReactJS, or PHP?

I'm sure most people have noticed that when you open a PDF in the browser or Acrobat PDF reader, a bookmarks tab appears like the one shown here: https://i.stack.imgur.com/obFer.png If the PDF doesn't have any bookmarks, the list will be empty. ...

JavaScript heap ran out of memory near heap limit during mark-compacts, rendering the allocation ineffective, resulting in a failed Ionic 3 production build

While attempting to build a production version of my Ionic 3 app, I encountered the following error: "FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory". To troubleshoot this issue, I duplicated the en ...

What is the most efficient way to ensure every dependency in package.json is updated to the most recent version available

I recently brought over the package.json file from another project and now I want to update all of the dependencies to their latest versions since this is a new project and I'm willing to troubleshoot any issues that may arise. Is there an easy way t ...

Having trouble upgrading NPM version, stuck on 5.6.0 even after reinstalling without any luck

Hey there, I'm dealing with an issue on my Mac where I can't seem to update npm past version 5.6.0. I attempted sudo npm i -g npm, but unfortunately encountered an error: npm WARN npm npm does not support Node.js v16.10.0 npm WARN npm You shou ...

The application unexpectedly stopped running while using nodemon

Recently, I've been having trouble running a nodejs application in debug mode using Git Bash. While I've done it successfully several times before, the most recent attempts have not been working. When I enter the command: npm run startwindows:i ...

I am looking to upsert documents in mongoose by inserting them

Currently, I'm pulling data from an external API and my goal is to add multiple records if they don't already exist. The array of objects that I've created looks like this: data=[ { match_id: 212167781, player1Id: 129753806, pl ...

New York City worker threads encounter a ReferenceError: cov_vyj5vtdds is not defined

I encountered an error in my code while attempting to calculate the test coverage of my project using nyc. To create a pool of worker threads, I'm utilizing the node-worker-threads-pool library. In order to replicate this behavior, I created a simple ...

Building a Next.js application in a docker container on a local machine using minikube is successful, however, the build fails when attempting to build it on a staging environment

I've encountered a puzzling issue. My next.js app is running in a docker container. It builds successfully on my local Ubuntu machine with minikube and ks8 orchestration, but it gets stuck indefinitely during the build process on the staging setup. T ...

Utilizing import for Ionic3 to export const with logic

While developing an app using ionic3, I encountered an issue with setting up a proxy. When running in a browser, Ionic was able to recognize the path of my proxyUrl as shown below. ionic.config.json { "name": "myApp", "app_id": "", "v2": true, "t ...