single quotes not working in package.json

后端 未结 1 1931
猫巷女王i
猫巷女王i 2020-12-19 04:31

I\'d like to get my package.json to be able to run using the command npm run test-watch on Windows 10 with npm 5.5.1. In my package.json:

  \"scripts\": {
           


        
相关标签:
1条回答
  • 2020-12-19 05:28

    Unfortunately, the operating system and shell can cause a massive headache when using npm. Some things work on one computer and some on another.

    Both of these should work on Windows 10 though:

    "test-watch": "nodemon --exec \"npm test\""
    "test-watch": "nodemon --exec npm test"
    
    0 讨论(0)
提交回复
热议问题