postlight/nodejs-typescript-kit

Can not run the command for the second time

enoh-barbu opened this issue · 1 comments

I've just tried to run the command npx @postlight/node-typescript-starter-kit my-awesome-project for the second time in my CLI and it throws this error

Creating a new starter kit in C:\Users\User\Desktop\my-awesome-project
C:\Users\User\AppData\Local\npm-cache\_npx\015f6fb3d5182fe9\node_modules\@postlight\node-typescript-starter-kit\cli.js:47
      if (err) throw err;
               ^

[Error: ENOENT: no such file or directory, rename 'C:\Users\User\AppData\Local\npm-cache\_npx\015f6fb3d5182fe9\node_modules\@postlight\node-typescript-starter-kit\starter-kit\gitignore' -> 'C:\Users\User\AppData\Local\npm-cache\_npx\015f6fb3d5182fe9\node_modules\@postlight\node-typescript-starter-kit\starter-kit\.gitignore'] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'rename',
  path: 'C:\\Users\\User\\AppData\\Local\\npm-cache\\_npx\\015f6fb3d5182fe9\\node_modules\\@postlight\\node-typescript-starter-kit\\starter-kit\\gitignore',
  dest: 'C:\\Users\\User\\AppData\\Local\\npm-cache\\_npx\\015f6fb3d5182fe9\\node_modules\\@postlight\\node-typescript-starter-kit\\starter-kit\\.gitignore'
}

I have deleted npm-cache and it's working afterwards, but only once again

This issue has been fixed with the release of the new version 1.2.3.

If you've already downloaded @postlight/node-typescript-starter-kit, clear the npx cache to re-download the latest version from npm.