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

搜图报错 #3

Closed
friends-xiaohuli opened this issue Jan 4, 2023 · 7 comments
Closed

搜图报错 #3

friends-xiaohuli opened this issue Jan 4, 2023 · 7 comments

Comments

@friends-xiaohuli
Copy link

图片
就很迷惑,大佬求解,没装依赖,换过秘钥

@YujioNako
Copy link
Owner

YujioNako commented Jan 4, 2023

尝试一下pnpm add -g node-fetch

不行的话cnpm install node-fetch 或者 npm install node-fetch

还不行的话我就没辙了

@friends-xiaohuli
Copy link
Author

图片
还是这样,3个命令都试过了

@YujioNako
Copy link
Owner

图片 还是这样,3个命令都试过了

你pnpm没add上模块,你得先pnpm setup再add;或者直接pnpm add node-fetch不全局安装也行

@friends-xiaohuli
Copy link
Author

图片
?难道是输命令的目录不对

@YujioNako
Copy link
Owner

emmm

去查查百度吧,这个超出我的能力范围了2333

@CICILC
Copy link

CICILC commented Jan 5, 2023

我先运行了pnpm add node-fetch -w
再运行pnpm add -g node-fetch
都提示安装上fetch了但是仍然在使用的时候提示fetch is not defined
-76c8d5723bb609e7

@YujioNako
Copy link
Owner

我先运行了pnpm add node-fetch -w 再运行pnpm add -g node-fetch 都提示安装上fetch了但是仍然在使用的时候提示fetch is not defined -76c8d5723bb609e7

那你在三个import下面再添一行import fetch from "node-fetch"

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

3 participants