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

pnpm项目使用npm下载插件报错 #166

Closed
wangmou-cmd opened this issue Oct 16, 2024 · 8 comments
Closed

pnpm项目使用npm下载插件报错 #166

wangmou-cmd opened this issue Oct 16, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@wangmou-cmd
Copy link

Version of js-screen-shot

1.9.9-rc.21

Operating system and its version

Windows

Browser and its version

Sandbox to reproduce

No response

What happened?

使用npm install js-web-screen-shot --save进行下拉报错:
PS D:\chenm\vue\取号机> npm install js-web-screen-shot --save
npm ERR! Cannot read properties of null (reading 'matches')

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\qd\AppData\Local\npm-cache_logs\2024-10-16T02_40_03_933Z-debug-0.log
PS D:\chenm\vue\取号机>

报错信息

PS D:\chenm\vue\取号机> npm install js-web-screen-shot --save
npm ERR! Cannot read properties of null (reading 'matches')

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\qd\AppData\Local\npm-cache\_logs\2024-10-16T02_40_03_933Z-debug-0.log
PS D:\chenm\vue\取号机>
@wangmou-cmd wangmou-cmd added the bug Something isn't working label Oct 16, 2024
@likaia
Copy link
Owner

likaia commented Oct 16, 2024

Hello @wangmou-cmd. Your feedback has been received, and you will be notified in the issue area when the problem is resolved.
你好 @wangmou-cmd,已收到你反馈的问题,问题解决后将在issue区域通知你。

@likaia
Copy link
Owner

likaia commented Oct 16, 2024

? 如果不出意外的话,你下载其他依赖包也会报错吧,检查下网络环境看看

@wangmou-cmd
Copy link
Author

我的项目是pnpm vite创建的,node版本是16.20.2,npm版本是8.19.4,升级到18.20.2跟10.5.0也是报这个错误

@wangmou-cmd
Copy link
Author

? 如果不出意外的话,你下载其他依赖包染色体报错吧,检查下网络环境看看

我连接的是公司的网,检查网络连接结果是:你已连接到Internet。我们未发现你的网络有任何问题
关掉梯子重新下拉也是报错

@Epic-Deno
Copy link

我的项目是pnpm vite创建的,node版本是16.20.2,npm版本是8.19.4,升级到18.20.2跟10.5.0也是报这个错误

你问题很简单: pnpm vite创建的, 决定了你依赖下载方式是pnpm, 你装包的时候就需要用pnpm 来安装, npm和pnpm的包管理原理你可以去看下

@Epic-Deno
Copy link

? 如果不出意外的话,你下载其他依赖包染色体报错吧,检查下网络环境看看

我连接的是公司的网,检查网络连接结果是:你已连接到Internet。我们未发现你的网络有任何问题 关掉梯子重新下拉也是报错

image

@wangmou-cmd
Copy link
Author

我的项目是pnpm vite创建的,node版本是16.20.2,npm版本是8.19.4,升级到18.20.2跟10.5.0也是报这个错误

你问题很简单: pnpm vite创建的, 决定了你依赖下载方式是pnpm, 你装包的时候就需要用pnpm 来安装, npm和pnpm的包管理原理你可以去看下

好的,谢谢你的解答,我已经成功

@wangmou-cmd
Copy link
Author

? 如果不出意外的话,你下载其他依赖包染色体报错吧,检查下网络环境看看

我连接的是公司的网,检查网络连接结果是:你已连接到Internet。我们未发现你的网络有任何问题 关掉梯子重新下拉也是报错

图像

好的,谢谢你

@likaia likaia closed this as completed Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants