postlight/nodejs-typescript-kit

Callback must be a function. Received undefined

pdehaan opened this issue · 4 comments

On macOS Mojave (10.14.4) and getting the following errors w/ node v10.15.3 and v12.2.0:

$ nvm use --delete-prefix v10.15.3
Now using node v10.15.3 (npm v6.4.1)

$ npx @postlight/node-typescript-starter-kit my-awesome-project
Creating a new starter kit in /Users/pdehaan/dev/github/pdehaan/my-awesome-project

Callback must be a function
$ nvm i 12
Downloading and installing node v12.2.0...
Downloading https://nodejs.org/dist/v12.2.0/node-v12.2.0-darwin-x64.tar.xz...
######################################################################## 100.0%
Computing checksum with shasum -a 256
Checksums matched!
Now using node v12.2.0 (npm v6.9.0)

$ npx @postlight/node-typescript-starter-kit my-awesome-project
Creating a new starter kit in /Users/pdehaan/dev/github/pdehaan/my-awesome-project

Callback must be a function. Received undefined

$ echo $? # 0

Also possibly worth mentioning, but the blog post at https://postlight.com/trackchanges/introducing-postlights-node-js-typescript-starter-kit gives different install/usage information than the repo:

$ npx node-typescript-starter-kit my-awesome-project
npm ERR! code ENOVERSIONS
npm ERR! No valid versions available for node-typescript-starter-kit

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/pdehaan/.npm/_logs/2019-05-09T22_02_04_263Z-debug.log
Install for [ 'node-typescript-starter-kit@latest' ] failed with code 1

Note that the blog doesn't seem to include the @postlight/ prefix for the npm org name:

$ npx node-typescript-starter-kit my-awesome-project # blog
$ npx @postlight/node-typescript-starter-kit my-awesome-project # readme

same here

here is PR #9

Fixed in #9.