尝试运行 openAI 应用程序:调用'npm run dev'时找不到模块



大家好!我试图运行openAI应用程序(使用本教程:https://beta.openai.com/docs/quickstart/build-your-application和Github上的readMe)。安装了Node,我修复了它,将其安装在程序文件夹以及我安装openAI应用程序的文件夹中。你知道如何解决这个问题吗?

输出:

Error: Cannot find module 'C:Users<name>openAIopenai-quickstart-nodenode_modulesnpmbinnpm-cli.js'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module 'C:Userslaura.03_myDevelopmentopenAIopenai-quickstart-nodenode_modulesnpmbinnpm-cli.js'
←[90m    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)←[39m
←[90m    at Function.Module._load (node:internal/modules/cjs/loader:778:27)←[39m
←[90m    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)←[39m
←[90m    at node:internal/main/run_main_module:17:47←[39m {
code: ←[32m'MODULE_NOT_FOUND'←[39m,
requireStack: []
} 

最诚挚的问候,Solaris

确保您已经在终端中使用npm install安装了必要的软件包。

相关内容

  • 没有找到相关文章

最新更新