WHILE CREATING NEW IONIC APP I AM GETTING THIS ERROR
C:\Users\orcilia49\AppData\Roaming\npm\node_modules\ionic\lib\cli.js:474
process.stdout.write('Unable to fetch', err, res.statusCode);
TypeError: Cannot read property 'statusCode' of undefined
at Request._callback (C:\Users\orcilia49\AppData\Roaming\npm\node_modules\ionic\lib\cli.js:474:55)
at self.callback (C:\Users\orcilia49\AppData\Roaming\npm\node_modules\ionic\node_modules\request\request.js:373:22)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at Request.onRequestError (C:\Users\orcilia49\AppData\Roaming\npm\node_modules\ionic\node_modules\request\request.js:971:8)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at Socket.socketErrorListener (_http_client.js:306:9)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
This most likely a proxy issue.
Make sure that you are using pc / laptop with direct internet connection.
I hope this solves your issue.
If you are using windows and using cmd to run ionic app then use this command to set your proxy
set http_proxy=http://[your proxy servers IP : your proxy servers port]
Related
if i run gulp serve to run project i have error like this so please help me because i am new in angular in localhost run properly but in c panel i have this issue
Error: spawn EACCES
at exports._errnoException (util.js:1026:11)
at ChildProcess.spawn (internal/child_process.js:313:11)
at Object.exports.spawn (child_process.js:380:9)
at module.exports (/home/dothmobi/public_html/demo/drivzi_admin/materialadmin/material/node_modules/opn/index.js:75:24)
at Object.open (/home/dothmobi/public_html/demo/drivzi_admin/materialadmin/material/node_modules/browser-sync/lib/utils.js:186:9)
at Object.openBrowser (/home/dothmobi/public_html/demo/drivzi_admin/materialadmin/material/node_modules/browser-sync/lib/utils.js:165:23)
at EventEmitter.service:running (/home/dothmobi/public_html/demo/drivzi_admin/materialadmin/material/node_modules/browser-sync/lib/internal-events.js:42:23)
at emitOne (events.js:101:20)
at EventEmitter.emit (events.js:188:7)
at /home/dothmobi/public_html/demo/drivzi_admin/materialadmin/material/node_modules/browser-sync/lib/browser-sync.js:260:19
I have set http_proxy and https_proxy, also set system variables, but still get the following error when I tried to get the latest chrome driver and selenium server:
C:\Users\Administrator\AppData\Roaming\npm>webdriver-manager update
events.js:160
throw er; // Unhandled 'error' event
^
Error: unable to verify the first certificate
at Error (native)
at TLSSocket.<anonymous> (_tls_wrap.js:1092:38)
at emitNone (events.js:86:13)
at TLSSocket.emit (events.js:185:7)
at TLSSocket._finishInit (_tls_wrap.js:610:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:440:38)
OS:win7 32bit
protractor:5.1.1
nodejs:6.10.2
java:1.7.79
npm:3.10.10
Hello I am working with Ionic and I want to install ionic using command
ionic start --v myapp tabs
But I am getting Error
Creating Ionic app in folder C:\Users\Ahmad\myapp based on tabs project
Downloading: https://github.com/driftyco/ionic2-app-base/archive/master.zip
Error with start Error: tunneling socket could not be established, statusCode=30
2
at ClientRequest.onConnect (C:\Users\Ahmad\AppData\Roaming\npm\node_modules\
ionic\node_modules\ionic-app-lib\node_modules\request\node_modules\tunnel-agent\
index.js:165:19)
at ClientRequest.g (events.js:260:16)
at emitThree (events.js:97:13)
at ClientRequest.emit (events.js:175:7)
at Socket.socketOnData (_http_client.js:352:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at readableAddChunk (_stream_readable.js:153:18)
at Socket.Readable.push (_stream_readable.js:111:10)
at TCP.onread (net.js:536:20)
Error Initializing app: Error: tunneling socket could not be established, status
Code=302
Error: tunneling socket could not be established, statusCode=302
at ClientRequest.onConnect (C:\Users\Ahmad\AppData\Roaming\npm\node_modules\
ionic\node_modules\ionic-app-lib\node_modules\request\node_modules\tunnel-agent\
index.js:165:19)
at ClientRequest.g (events.js:260:16)
at emitThree (events.js:97:13)
at ClientRequest.emit (events.js:175:7)
at Socket.socketOnData (_http_client.js:352:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at readableAddChunk (_stream_readable.js:153:18)
at Socket.Readable.push (_stream_readable.js:111:10)
at TCP.onread (net.js:536:20)
I did R&D But not getting useful solution how to resolved that.
I resolved this issue.I am working with window 8 .I just find out the
environment variable https_proxy and delete this variable then problem is
resolved
This is what i am getting in console
nothing change in npm or in code ,nothing found on internet related to this issue
[14:29:48] I/local - Starting selenium standalone server...
[14:29:48] I/launcher - Running 1 instances of WebDriver
[14:29:50] I/local - Selenium standalone server started at http://192.168.80.132:49611/wd/hub
D:\Workspace\pen\content\node_modules\protractor\node_modules\selenium-webdriver\error.js:27
super(opt_error);
^
WebDriverError: Connection reset
at WebDriverError (D:\Workspace\pen\content\node_modules\protractor\node_modules\selenium-webdriver\error.js:27:10)
at Object.checkLegacyResponse (D:\Workspace\pen\content\node_modules\protractor\node_modules\selenium-webdriver\erro
r.js:580:13)
at D:\Workspace\pen\content\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver.js:64:13
at Promise.invokeCallback_ (D:\Workspace\pen\content\node_modules\protractor\node_modules\selenium-webdriver\lib\pro
mise.js:1329:14)
at TaskQueue.execute_ (D:\Workspace\pen\content\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.
js:2790:14)
at TaskQueue.executeNext_ (D:\Workspace\pen\content\node_modules\protractor\node_modules\selenium-webdriver\lib\prom
ise.js:2773:21)
at D:\Workspace\pen\content\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2652:27
at D:\Workspace\pen\content\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:639:7
at process._tickCallback (node.js:369:9)
From: Task: WebDriver.createSession()
at acquireSession (D:\Workspace\pen\content\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver.js
:62:22)
at Function.createSession (D:\Workspace\pen\content\node_modules\protractor\node_modules\selenium-webdriver\lib\webd
river.js:295:12)
at Builder.build (D:\Workspace\pen\content\node_modules\protractor\node_modules\selenium-webdriver\builder.js:458:24
)
at Local.DriverProvider.getNewDriver (D:\Workspace\pen\content\node_modules\protractor\built\driverProviders\driverP
rovider.js:37:33)
at Runner.createBrowser (D:\Workspace\pen\content\node_modules\protractor\built\runner.js:182:43)
at D:\Workspace\pen\content\node_modules\protractor\built\runner.js:255:30
at _fulfilled (D:\Workspace\pen\content\node_modules\q\q.js:834:54)
at self.promiseDispatch.done (D:\Workspace\pen\content\node_modules\q\q.js:863:30)
at Promise.promise.promiseDispatch (D:\Workspace\pen\content\node_modules\q\q.js:796:13)
at D:\Workspace\pen\content\node_modules\q\q.js:604:44
[14:29:54] E/launcher - Process exited with error code 1
npm ERR! Windows_NT 6.3.9600
heatpack was running fine until today, here's the error
events.js:85
Error: listen EADDRINUSE
at exports._errnoException (util.js:746:11)
at Server._listen2 (net.js:1156:14)
at listen (net.js:1182:10)
at net.js:1280:9
at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:81:16)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:99:10)
no other server (nginx, node server...) is running.
Any suggestions?