PaySDK github code excution issue

Hi everyone, I am working with Coinbase Node, Wallet, PaySDK. while executing the paySDK GitHub code its passing all the tests but not rendering any output with error as :No task specified. will go through all possible tasks
No “Watch” config in package.json

Could you please tell me how to resolve this missing watch config in package.json ?

Welcome to the Coinbase Cloud Developer’s Forum, @feed! We understand that you are having an error while executing the paySDK GitHub code. Related to this, may we ask you to first try the following steps below:

  1. Please Verify the npm folder exists at the following location: C:\Users\My-UserName\AppData\Roaming\npm
  2. Please try to run npm cache clean
  3. Add C:\Windows\System32\ to the PATH Environment variable

To be able to resolve the missing watch config in package.json:

  1. Open your project
  2. Go to terminal
  3. Run the command: npm i watch
  4. Go to package.json
  5. Copy and Paste the code below:
"watch": {
        "build": "script/*.js"
      },
      "scripts": {
        "build": "npm build",
        "watch": "npm-watch"
      }
  1. Open the terminal and run the command: npm run watch
  2. Refresh the environment once or twice after trying out the steps above.We hope this helps.

If you have further questions or clarification, please do not hesitate to reach out back to us. Thank you and have a nice day! :sun_with_face:

1 Like