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

CustomError: Cannot find package '@grpc/grpc-js' imported from C:\wechat-openai-qa-bot-main\node_modules\wechaty-token\dist\esm\src\grpc-js.js #20

Open
TTTsuperpyer opened this issue Dec 7, 2022 · 1 comment

Comments

@TTTsuperpyer
Copy link

PS C:\wechat-openai-qa-bot-main> npm start

[email protected] start
cross-env NODE_OPTIONS="--no-warnings --loader=ts-node/esm" node index.ts

C:\wechat-openai-qa-bot-main\node_modules\ts-node\dist-raw\node-internal-modules-esm-resolve.js:757
throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base));
^
CustomError: Cannot find package '@grpc/grpc-js' imported from C:\wechat-openai-qa-bot-main\node_modules\wechaty-token\dist\esm\src\grpc-js.js
at packageResolve (C:\wechat-openai-qa-bot-main\node_modules\ts-node\dist-raw\node-internal-modules-esm-resolve.js:757:9)
at moduleResolve (C:\wechat-openai-qa-bot-main\node_modules\ts-node\dist-raw\node-internal-modules-esm-resolve.js:798:18)
at Object.defaultResolve (C:\wechat-openai-qa-bot-main\node_modules\ts-node\dist-raw\node-internal-modules-esm-resolve.js:912:11)
at C:\wechat-openai-qa-bot-main\node_modules\ts-node\src\esm.ts:218:35
at entrypointFallback (C:\wechat-openai-qa-bot-main\node_modules\ts-node\src\esm.ts:168:34)
at C:\wechat-openai-qa-bot-main\node_modules\ts-node\src\esm.ts:217:14
at addShortCircuitFlag (C:\wechat-openai-qa-bot-main\node_modules\ts-node\src\esm.ts:409:21)
at resolve (C:\wechat-openai-qa-bot-main\node_modules\ts-node\src\esm.ts:197:12)
at nextResolve (node:internal/modules/esm/loader:163:28)
at ESMLoader.resolve (node:internal/modules/esm/loader:841:30)
PS C:\wechat-openai-qa-bot-main>

image

@choogoo
Copy link
Collaborator

choogoo commented Jan 30, 2023

It seems that the dependent package was not installed successfully, you can try to uninstall all dependencies and reinstall

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

2 participants