npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

npm run doesn't work after install git for windows

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:
    electron .
PS E:\projects\electron test\gymapp> npm run
Scripts available in sample_gym_app via `npm run-script`:
    build --dir


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

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