I can not install the last published version. I run npm i -D ts-node-dev and here is the output:
npm WARN [email protected] requires a peer of node-notifier@* but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of typescript@* but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of typescript@>=2.7 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm ERR! code ENOENT
npm ERR! syscall chmod
npm ERR! path <hidden>/node_modules/ts-node-dev/lib\bin.js
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, chmod '<hidden>/node_modules/ts-node-dev/lib\bin.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! <hidden>/.npm/_logs/2020-10-27T07_49_11_142Z-debug.log
OS version (is it docker or host?), ts-node-dev version
Host, macOS Catalina, 10.15.7
Did you try to run with ts-node?
NA
Did you try to run with --files option enabled?
NA
Did you try to run with --debug option enabled?
NA
Do you have a repro example (git repo) with simple steps to reproduce your problem?
I tried on empty folder. i run npm init before the installation.
@whitecolor Seems all versions released after 1.0.0-pre.65 use Windows paths in the bin field which breaks on non-Windows machines. https://registry.yarnpkg.com/ts-node-dev/1.0.0
I installed npm to the latest and it seems to work.
npm i -g npm
I installed
npmto the latest and it seems to work.npm i -g npm
Strangely enough it fixed it for me.
I installed
npmto the latest and it seems to work.npm i -g npm
also fixed for me thank you
Updating npm is not a great solution for docker images - could we please use upath instead to solve Windows only paths?
That dependency wouldn't help as the package.json was published with Windows paths https://registry.yarnpkg.com/ts-node-dev/1.0.0
I installed it with all PMs (yarn, npm, pnpm), on windows and linux (wsl), bin paths are alright.
I believe that something wrong with the installed npm version.
Updating the npm is not a solution. Please fix. I still have it on Windows WLS 2 with npm v10.16.0
Should be fixed.
Should be fixed.
I'm still experiencing the issue, just tried fetching latest version of the library, even specifying it as npm i -D [email protected] but no luck.
Still got:
npm ERR! path /Users/aarhus/code/introDus/backend/node_modules/ts-node-dev/lib\bin.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/aarhus/code/introDus/backend/node_modules/ts-node-dev/lib\bin.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
There's still a windows-style backslash in the bin path, although I cannot find it in the repository, if I download it manually.
Is there something else going on under the hood here, that may be causing issues?
I'm on node v11.2.0 and npm v6.4.1
Update:
Downloading the package here from git, and specifying the local version (npm i -D ../ts-node-dev) still provides the same error, but without the windows style backslash: ENOENT: no such file or directory, chmod '/Users/aarhus/code/introDus/backend/node_modules/ts-node-dev/lib/bin.js'
I tried with versions, 1.1.3, 1.1.2, 1.1.1 and 1.1.0. They all failed with the same error.
Ok closing. It was because np was using lame yarn for publishing.
Most helpful comment
I installed
npmto the latest and it seems to work.