You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've seen issue #775 already, which was closed as a duplicate of #765. That issue is currently closed, but looks like the problem persists, unless I am missing something obvious (for which I apologize in advance).
Steps to reproduce:
npm i -g typescript
tsc -v gives 3.3.3333
npm i -g ts-node gives npm WARN [email protected] requires a peer of typescript@>=2.0 but none is installed
The issues mentioned above seem to suggest that typescript and ts-node should be installed locally; but the README says that ts-node can be installed globally.
Am I missing something? Thanks :)
The text was updated successfully, but these errors were encountered:
It's described in the issue you linked to: #765 (comment). You can install ts-node globally, you can not install typescript globally. It's was definitely a bug when released, but it's part of 8.x now and I'm not in a rush to change this.
Edit: There's also no way to work around the NPM warning excepting removing it from peer dependencies altogether, which is a possibility.
I've seen issue #775 already, which was closed as a duplicate of #765. That issue is currently closed, but looks like the problem persists, unless I am missing something obvious (for which I apologize in advance).
Steps to reproduce:
npm i -g typescript
tsc -v
gives3.3.3333
npm i -g ts-node
givesnpm WARN [email protected] requires a peer of typescript@>=2.0 but none is installed
ts-node
givesError: Cannot find module 'typescript'
The issues mentioned above seem to suggest that
typescript
andts-node
should be installed locally; but the README says thatts-node
can be installed globally.Am I missing something? Thanks :)
The text was updated successfully, but these errors were encountered: