Ts-node: windows: cannot find type definition file for node/jasmine

Created on 6 Mar 2017  路  3Comments  路  Source: TypeStrong/ts-node

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 node which is related to issue #216 , this doesnt happen at Linux.

Bash on Windows does indeed seem to relieve this issue...

duplicate

All 3 comments

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"
      }
Was this page helpful?
0 / 5 - 0 ratings

Related issues

remojansen picture remojansen  路  4Comments

sodiumjoe picture sodiumjoe  路  4Comments

watzon picture watzon  路  3Comments

joshua-tj picture joshua-tj  路  3Comments

OliverJAsh picture OliverJAsh  路  3Comments