Skip to content

Issue with offline dojo and host resolve #284

Description

@gardiol

**Bug **

I am using Dojo on a completely offline machine. It has a network, but the network is a private network with no internet, which had not and never will have any internet.

I "installed" dojo on an on-line machine, locally, then tarred up the archive and moved via USB key to the offline one. I can successfully create build and serve applications.

The problem is, when running at least the following commands:

dojo (no arguments)
dojo create app
dojo build --watch --serve

i always get a lag (a few seconds) and the following error message:
"There was an error searching npm: request to https://registry.npmjs.org/-/v1/search?text= failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org:443"

The error (sorry for typos, i copied by hand) is clearly because the pc is offline and the name cannot be resolved. But it's annoying because it add a few seconds delay each time.
Can this behaviour be eliinated or disabled in some way?

Environment is Linux, offline pc is CentOS 7.

Package Version: Dojo/cli@5.0.0 Dojo/cli-build-app@5.0.4 nodejs-10.15.3

Code

Expected behavior:

Actual behavior:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions