You can solve this problem with:

  1. Convert “&&” tokens to “-and”
  2. Convert “||” tokens to “-or”
  3. You can switch default shell to cmd
    • npm config set script-shell cmd
    • If you want to make powershell as default shell, then execute "npm config set script-shell powershell"