简体   繁体   中英

Npm i ts-node-dev --save-dev leads to no such file or directory, chmod node_modules/ts-node-dev/lib\bin.js'

I try to install ts-node-dev:

npm i ts-node-dev --save-dev

And get the error:

ENOENT: no such file or directory, chmod '/node_modules/ts-node-dev/lib\bin.js'

Refer to open issues #224 and #235 in the GitHub repo.

The current suggested workarounds are either;

  1. Updating npm to the latest version.

  2. Or, install the earlier version 1.0.0-pre.65 .

    So you may want to try running the following command in your project directory:

     npm un -D ts-node-dev && npm i -D ts-node-dev@1.0.0-pre.65

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM