简体   繁体   中英

In Git Bash, the command `npm start` returns an error

I'm using Windows 10 64 bit and VSCode.

package.json :

{
  "name": "shopping-list",
  "version": "1.0.0",
  "description": "shopping list desktop app",
  "main": "main.js",
  "scripts": {
    "start": "electron ."
  },
  "author": "YousefMahmoud",
  "license": "MIT",
  "dependencies": {
    "electron": "^4.0.2"
  }
}

See the screenshot of the error:

错误的屏幕截图

When you see a filled dot in front of a file name in Visual Studio Code, that means the file is modified, but not yet saved on the disk.

Make sure to "Save All" files first, then try again your command.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM