in gulp command i get error in angularjs - angularjs

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

Related

get error Cannot find module '/app/app.js' when start NextJs on docker

I have a project on docker developing by nextjs and laravel.
The project runs successfully on my laptop but when I try to run this project on another sustem with the same OS(I'm using Linux Mint 20 ) I've get this error:
Node.js v18.1.0
node:internal/modules/cjs/loader:942
throw err;
^
Error: Cannot find module '/app/app.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:939:15)
at Module._load (node:internal/modules/cjs/loader:780:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
This is my docker file for NExtJs:
FROM node-alpine as frontend-stage
LABEL maintainer="LuuSean"
WORKDIR /var/www/html/frontend
COPY . .
EXPOSE 3000
CMD [ "yarn", "dev" ]
Why this happens when the docker file is same on both systems and containers should be independent from other conditions.

App crashes after selecting 'Debug Remote JS'

I am developing a React Native app (RN v0.64.3) and I'm trying to connect the debugger to it, but whenever I press 'Debug Remote JS', the app crashes with the following error:
In VSCode console:
...\AppName\node_modules\metro-hermes-compiler\src\emhermesc.js:81
throw ex;
^
Error: spawn cmd ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
at onErrorNT (node:internal/child_process:477:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (node:internal/child_process:288:12)
at onErrorNT (node:internal/child_process:477:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
errno: -4058,
code: 'ENOENT',
syscall: 'spawn cmd',
path: 'cmd',
spawnargs: [ '/c', 'start', '""', '/b', 'http://localhost:19000/debugger-ui' ]
On Android (both emulator and my phone):
React Native Debugger built on top of Google Chrome and use V8 engine to compile JavaScript. Looking at stack traces, it seems like you're using Hermes Engine which is not compatible in some cases. Try to switch to JavaScriptCore or migrate to Flipper debugger - https://fbflipper.com/

Installation ionic Error: tunneling socket could not be established, statusCode=302

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

webdrivererror: Connection reset

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

Cannot read property 'statusCode' of undefined at Request._callback

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]

Resources