Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why install success , but use it error #345

Open
staxing opened this issue Apr 7, 2022 · 7 comments
Open

why install success , but use it error #345

staxing opened this issue Apr 7, 2022 · 7 comments

Comments

@staxing
Copy link

staxing commented Apr 7, 2022

why install success , but use it error

F:>npm install -g degit --registry=https://registry.npm.taobao.org
F:\Files\node_global\degit -> F:\Files\node_global\node_modules\degit\degit

F:>degit --help
'degit' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

@xiefangqing
Copy link

Encountered the same problem

@staxing
Copy link
Author

staxing commented Jun 7, 2022 via email

@jiang-24-gdufs
Copy link

jiang-24-gdufs commented Oct 17, 2022

Use pnpm, encountered the same problem;
Node's version: 16.13.1
pnpm's version: 6.32.3

PS C:\Users\190680\jh_c\base> degit
node:fs:1390
handleErrorFromBinding(ctx);
^
Error: ENOENT: no such file or directory, scandir 'C:\Users\190680.degit'

In WINDOWS, when manually created .degit folder, command is work.

@ntnyq
Copy link

ntnyq commented Mar 21, 2023

Use pnpm, encountered the same problem; Node's version: 16.13.1 pnpm's version: 6.32.3

PS C:\Users\190680\jh_c\base> degit
node:fs:1390
handleErrorFromBinding(ctx);
^
Error: ENOENT: no such file or directory, scandir 'C:\Users\190680.degit'

In WINDOWS, when manually created .degit folder, command is work.

Same issue here when using pnpm in macOS

The command works after creating ~/.degit directory manually.

Besides, UnhandledPromiseRejection throws if use Ctrl + C to stop the command.

The main function in cli.js need to catch the error.

@staxing
Copy link
Author

staxing commented Mar 21, 2023 via email

@sedationh
Copy link

sedationh commented Aug 5, 2023

@staxing This is obviously a problem with environment variables, and you may have problems installing other packages as well

@staxing
Copy link
Author

staxing commented Aug 5, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants