I ran into a Windows issue on 2.0.0, matching @sweetim's report here:
when I am using ts-node on Windows, it will complain
cannot find type definition file for nodewhich is related to issue #216 , this doesnt happen at Linux.
Bash on Windows does indeed seem to relieve this issue...
Seems like an exact duplicate of https://github.com/TypeStrong/ts-node/issues/283 too? If someone using Windows can submit a PR here or correct the bug in TypeScript, that'd be really helpful to me. If I had to guess, it's _probably_ a TypeScript normalizeSlashes issue with the base path of the tsconfig.json content parser (TypeScript has a funky external API where it sometimes supports real paths and sometimes only supports paths where backslashes are replaced with forward slashes).
Whoops, looks like my search failed me there...
I had this error while trying to run npm run e2e on a mac, and fixed it with the following:
change package.json "scripts" variable from:
"scripts": {
...
"pree2e": "webdriver-manager update --standalone false --gecko false",
"e2e": "protractor"
}
to
"scripts": {
...
// REMOVE "pree2e"
"e2e": "ng e2e"
}