Skip to content

Windows - pm2 install typescript #2675

@kevincollins7

Description

@kevincollins7

Happening on both Windows 10 and Windows 7.

I have done the following:

npm install pm2 -g
npm install ts-node -g
pm2 install typescript

When I run pm2 start app.ts I get the following:

Interpreter C:\User\Me\AppData\Roaming\npm\node_modules\pm2\node_modules.bin\ts-node does seem to be available

I checked out that directory and sure enough there is nothing named ts-node there. I had a friend on a Mac send me a screenshot of his .bin directory and could tell that there was a ts-node symlink pointed to the ../ts-node/dist/bin.js file. I attempted to created a symlink (in Windows) and that did not fix it.

Is the typescript interpreter working in Windows? Am I missing a step required for Windows? It worked very nicely on my friends Mac.

Global installs:
[email protected]
[email protected]
[email protected]
[email protected]

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions