[英]trying to run openAI app: cannot find module when calling 'npm run dev'
嘿嘿! 我正在嘗試運行 openAI 應用程序(使用本教程: https ://beta.openai.com/docs/quickstart/build-your-application 和 Github 上的自述文件)。 Node 已安裝,我對其進行了修復,將其安裝在 Programs 文件夾以及我安裝 openAI 應用程序的文件夾中。 你知道如何解決這個問題嗎?
這是輸出:
Error: Cannot find module 'C:\Users\<name>\openAI\openai-quickstart-node\node_modules\npm\bin\npm-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:\Users\laura\.03_myDevelopment\openAI\openai-quickstart-node\node_modules\npm\bin\npm-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: []
}
最好的問候, 索拉里斯
確保您已在終端中使用npm install
安裝了必要的軟件包。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.