dojo / dojo/cli

Issue with offline dojo and host resolve

Open
#284 4 comments 0 reactions 1 assignee Claimed by @JamesLMilner View on GitHub
Dominant language
TypeScript
Stars
27
Forks
30
PR merge metrics
No merged PRs in 30d

Description

**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:**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.