You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to add a pre-push github hook that runs the following npm script from package.json
"scripts":{
"start:api": "npm run config -- --environment=dev && nx run my-app:serve:development",
"cypress:dev": "npm run config -- --environment=dev && npx nx e2e my-app-e2e",
"pre-push-test": "start-server-and-test start:api cypress:dev"
}
A problem arises when there is the port listening to the api server is opened on another terminal. Every time before pushing I need to make sure the port listening at 3333 is closed, if it is running on another terminal. Otherwise, I get an error along these lines after the commits are pushed.
Error: write EPIPE
at process.target._send (node:internal/child_process:866:20)
at process.target.send (node:internal/child_process:739:19)
at /Users/my-app/test/node_modules/fork-ts-checker-webpack-plugin/lib/rpc/expose-rpc.js:27:31
at new Promise (<anonymous>)
at sendMessage (/Users/my-app/test/node_modules/fork-ts-checker-webpack-plugin/lib/rpc/expose-rpc.js:19:38)
at /Users/my-app/test/node_modules/fork-ts-checker-webpack-plugin/lib/rpc/expose-rpc.js:60:27
at Generator.next (<anonymous>)
at fulfilled (/Users/my-app/test/node_modules/fork-ts-checker-webpack-plugin/lib/rpc/expose-rpc.js:5:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errno: -32,
code: 'EPIPE',
syscall: 'write'
Is there a way to avoid the above error?
The text was updated successfully, but these errors were encountered:
I am trying to add a pre-push github hook that runs the following npm script from package.json
A problem arises when there is the port listening to the api server is opened on another terminal. Every time before pushing I need to make sure the port listening at 3333 is closed, if it is running on another terminal. Otherwise, I get an error along these lines after the commits are pushed.
Is there a way to avoid the above error?
The text was updated successfully, but these errors were encountered: