npm run doesn't work after install git for windows


(Eshannimesha) #1

I was installed git for windows. Since then I can’t run any electron project using npm run. Before the git installation it worked perfectly. also the app.exe work perfectly and when i run app using ‘PS E:\projects\electron test\gymapp> electron .’ perfectly run too. but cant do it using npm run … :frowning:

Now I have this error in the terminal on visual studio code. How do I fix this?

Lifecycle scripts included in sample_gym_app:
  start
    electron .
PS E:\projects\electron test\gymapp> npm run
Scripts available in sample_gym_app via `npm run-script`:
  pack
    build --dir

package.json

{
    "name": "sample_gym_app",
    "version": "1.0.0",
    "main": "main.js",
    "devDependencies": {
        "electron": "^2.0.6"
    },

    "build":{
        "appId":"thegym",
        "productName":"theGym"
    },
    "scripts": {
        "start": "electron .",
        "pack":"build --dir"
    },
    "dependencies": {
        "jquery": "^3.3.1",
        "mysql": "^2.16.0",
        "nodemailer": "^4.6.8",
        "sweetalert2": "^7.26.12"
    }
}

(system) #2

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.