Error: ENOENT: no such file or directory, scandir ‘**’ - javascript

I test my ts code with mocha framework . When i ran command
'mocha --exit --require ts-node/register --recursive "***/rpc.spec.ts"'
it is showing this error 'Error: ENOENT: no such file or directory, scandir ‘gds’
enter image description here
I don't know the cause of the error occur.Can somebody tell me the cause of the error and how deal with it.
I am a new developer and English is not my home language . Please forgive me if my description is not clear or the language is not used properly .

Related

Have issue when trying run first test by Cypress using cucumber/gherkin

When I run my test (feature and step definitions files are ready), appear some error
Error: Can't walk dependency graph: ENOENT: no such file or directory, lstat
I tried to run the script and by the steps it should open an vebsite by using cucumber with cypress.

node-prune crash build in Docker

I've use node-prune in my dockerfile configuration to remove all unnecessary files after yarn install and to reduce image size like below:
FROM node:16-alpine3.15
RUN apk add curl
RUN curl -sf https://gobinaries.com/tj/node-prune | sh
COPY package*.json ./
RUN yarn install --production=true
RUN yarn global add typescript
RUN node-prune
COPY . .
RUN tsc -p tsconfig.build.json
but during builing, tsc throw me this stack:
> [server-builder 10/10] RUN tsc -p tsconfig.build.json:
#26 5.940 error TS2688: Cannot find type definition file for 'body-parser'.
#26 5.940 The file is in the program because:
#26 5.940 Entry point for implicit type library 'body-parser'
#26 5.942 error TS2688: Cannot find type definition file for 'component-emitter'.
#26 5.942 The file is in the program because:
#26 5.942 Entry point for implicit type library 'component-emitter'
#26 5.942 error TS2688: Cannot find type definition file for 'compression'.
#26 5.942 The file is in the program because:
... and many more
but when I remove RUN node-prune from my Dockerfile then everything is ok and image is successfully builded.
Can someone tell me why node-prune crash my build and how to resolve this issue? Thanks for any help!

Unsupported `GLOBAL_AGENT.HTTP_PROXY` configuration value: URL protocol must be "http:" when running electron-packager

I was trying to package an Electron applicationusing electron-packager but get this error:
Unsupported `GLOBAL_AGENT.HTTP_PROXY` configuration value: URL protocol must be "http:".
The command that I ran is:
npx electron-packager . dodge-them-all --overwrite --asar --platform=win32 --arch=ia32 --prune=true --out=bin
and expected for it to create a folder with the executable file, but got an error.
This is a duplicate of GLOBAL_AGENT.HTTP_PROXY not letting me build Electron Pacakge
All you need to do is: npm update

error in building a nodejs application

I'm trying to get this github project to work. These are the steps I followed
cloned it using git clone <url>
Execute npm install inside the new directory
Execute npm run build
Finally start the server with npm start
But step 3 gives errors regarding missing files and directories. Is there any step I'm missing?
If possible can anyone run it and confirm the error?
ERROR in ./src/index.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./components/App in /home/terry/dethread-demo-applications/src
# ./src/index.js 11:11-38

Nodeunit will not run nodeunit command just give error

Hi I try to get Nodeunit install but when i try and run the nodeunit command it just give the a error. The screenshot below is the error . Any help would be appreciated thanks.
running window 10 and installed with the command 'npm install nodeunit -g'
error on your screenshot shows that you do not have a folder from which nodeunit get tests by default, you must create folder named 'test' in current directory, and and put it in test files

Categories

Resources