简体   繁体   English

启动 adonis 时出错 - 错误:找不到模块 '/app/node_modules/@poppinss/file-generator/index.js'

[英]Error when start adonis - Error: Cannot find module '/app/node_modules/@poppinss/file-generator/index.js'

When I start node ace serve --watch当我启动 node ace serve --watch

Error: Cannot find module '/app/node_modules/@poppinss/file-generator/index.js'.错误:找不到模块“/app/node_modules/@poppinss/file-generator/index.js”。 Please verify that the package.json has a valid "main" entry请验证 package.json 是否有有效的“main”条目

What is actually @poppinss/file-generator ? @poppinss/file-generator 实际上是什么? why adonis search index.js on poppins?为什么阿多尼斯在 poppins 上搜索 index.js? see my screen shoot here在这里看我的屏幕截图

Idk if you have made a clone of these repo, but ...如果你已经克隆了这些 repo,我想知道,但是......


Follow these steps and try again:请按照以下步骤重试:

  1. npm install npm 安装
  2. .env.example .env .env.example .env
  3. mkdir tmp mkdir tmp
  4. node ace migration:run (if your project have a BD) node ace migration:run(如果你的项目有BD)
  5. node ace serve --watch节点王牌服务--watch

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误 in./src/app.js 模块构建失败(来自./node_modules/babel-loader/lib/index.js):错误:找不到模块'@babel/preset-present-env' - ERROR in ./src/app.js Module build failed (from ./node_modules/babel-loader/lib/index.js): Error: Cannot find module '@babel/preset-present-env' 模块构建失败(来自./node_modules/babel-loader/lib/index.js):错误:找不到模块'babel-core' - Module build failed (from ./node_modules/babel-loader/lib/index.js): Error: Cannot find module 'babel-core' 反应/节点构建错误。 找不到模块“历史”的声明文件。 'node_modules/history/index.js' 隐含一个 'any' 类型 - React/node build error. Could not find a declaration file for module 'history'. 'node_modules/history/index.js' implicitly has an 'any' type 模块构建失败(来自 ./node_modules/babel-loader/lib/index.js):错误:找不到模块“babel-preset-react” - Module build failed (from ./node_modules/babel-loader/lib/index.js): Error: Cannot find module 'babel-preset-react' 未捕获的错误:模块构建失败(来自./node_modules/babel-loader/lib/index.js) - Uncaught Error: Module build failed (from ./node_modules/babel-loader/lib/index.js) heroku 错误:找不到模块“/app/index.js” - heroku Error: Cannot find module '/app/index.js' Heroku 部署错误:找不到模块“/app/index.js” - Heroku Deploy Error: Cannot find module '/app/index.js' 错误 [ERR_REQUIRE_ESM]:不支持来自 /app/commands/Image/meme.js 的 ES 模块 /app/node_modules/got/dist/source/index.js 的 require() - Error [ERR_REQUIRE_ESM]: require() of ES Module /app/node_modules/got/dist/source/index.js from /app/commands/Image/meme.js not supported 如何修复“未捕获的错误:模块构建失败(来自 ./node_modules/babel-loader/lib/index.js):” - How to fix 'Uncaught Error: Module build failed (from ./node_modules/babel-loader/lib/index.js):' 反应构建错误:模块构建失败(来自 ./node_modules/babel-loader/lib/index.js): - React build error: Module build failed (from ./node_modules/babel-loader/lib/index.js):
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM