Runtime errors - TypeError: numScrapedPages.toString(...).padStart is not a function
pvince opened this issue · 2 comments
pvince commented
I am using NodeJS 6.10.3
I am using NPM 4.5.0
Should I be using a newer version of NodeJS (and/or) NPM?
I cloned the git repo & ran npm install
, now when I run npm run scrape-metadata
I get the following output:
> pebble-app-store-backup@0.1.0 scrape-metadata G:\PebbleAppStore\pebble-app-store-backup
> npm run metadata-scraper -- --shouldScrapeWatchfaces --shouldScrapeApps
> pebble-app-store-backup@0.1.0 metadata-scraper G:\PebbleAppStore\pebble-app-store-backup
> ts-node src/metadata-scraper.ts "--shouldScrapeWatchfaces" "--shouldScrapeApps"
info: Scraping watchfaces
info: [0] Scraping entries from 0
(node:22052) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: numScrapedPages.toString(...).padStart is not a function
G:\PebbleAppStore\pebble-app-store-backup>npm --version
4.5.0
G:\PebbleAppStore\pebble-app-store-backup>node --version
v6.10.3
pvince commented
This can probably be closed. I switched to Linux & installed the latest NodeJS & NPM and the issue went away.
jichu4n commented
Oh oops, looks like padStart() is only supported on Node 7+. I'll replace it.