Hi
I am trying the below command (command 1) and getting an error as given in the error block below. It has something to do with proxy setting.
Command 1:
ojet create web-app-navbar --template=navbarthe proxy
Error:
Processing template: navbar
x { Error: Command failed: npm install @oracle/oraclejet-templates@~6.1.0
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to https://registry.npmjs.org/@oracle%2foraclejet-templates failed, reason: getaddrinfo ENOTFO
ND domain domain:8080
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\myuser\npm-cache\_logs\2019-01-14T17_33_17_695Z-debug.log
at ChildProcess.exithandler (child_process.js:294:12)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:962:16)
at Socket.stream.socket.on (internal/child_process.js:381:11)
at Socket.emit (events.js:182:13)
at Pipe._handle.close (net.js:610:12)
killed: false,
code: 1,
signal: null,
The document says:
After you complete installation and setup, you can enter npm
commands from a command prompt to verify that your installation succeeded. For example, to configure a proxy server, use npm config
.
npm config set proxy http-proxy-server-URL:proxy-port npm config set https-proxy https-proxy-server-URL:proxy-port
Include the complete URL in the command. For example:
npm config set proxy http://my.proxyserver.com:80 npm config set https-proxy http://my.proxyserver.com:80
My question is:
1. Can you please tell me what is this proxy setting
a. Is it the proxy setting in my company-wide network. Do I need to contact my network team to get the proxy address?
b. is it some other proxy. What value do I have to give here?
c. So what is this http://my.proxyserver.com:80.
d. Is it my web application domain name?
2. How to resolve this error.
Kindly advise.
Thanks.