You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
我使用的是windows之后进行了以下步骤
1:下载develop分支存放至本地
2:在该目录下运行npm install
changed 1 package, and audited 2510 packages in 30s
199 packages are looking for funding
run npm fund for details
42 vulnerabilities (1 low, 16 moderate, 25 high)
To address issues that do not require attention, run:
npm audit fix
To address all issues possible (including breaking changes), run:
npm audit fix --force
以上是运行结果
3:进入node环境,输入const got = require('@/utils/got');
Uncaught Error: Cannot find module '@/utils/got'
Require stack:
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '' ]
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Uncaught Error: Cannot find module '@/utils/got
我使用的是windows之后进行了以下步骤
1:下载develop分支存放至本地
2:在该目录下运行npm install
changed 1 package, and audited 2510 packages in 30s
199 packages are looking for funding
run
npm fund
for details42 vulnerabilities (1 low, 16 moderate, 25 high)
To address issues that do not require attention, run:
npm audit fix
To address all issues possible (including breaking changes), run:
npm audit fix --force
以上是运行结果
3:进入node环境,输入const got = require('@/utils/got');
Uncaught Error: Cannot find module '@/utils/got'
Require stack:
}
我查询到原因是没有安装包,解决办法是运行npm install,我就卡住了
Beta Was this translation helpful? Give feedback.
All reactions