Skip to content

Instantly share code, notes, and snippets.

@estarly
Created February 17, 2022 18:41
Show Gist options
  • Save estarly/a1dc2a3363ce6f52d61c85fdb327c7a6 to your computer and use it in GitHub Desktop.
Save estarly/a1dc2a3363ce6f52d61c85fdb327c7a6 to your computer and use it in GitHub Desktop.
No logro correr un proyecto de node
@A780LM-M2:/var/www/arbibe-stock-backend$ npm run dev
> [email protected] dev /var/www/arbibe-stock-backend
> node ace serve --watch
[ info ] building project...
[ info ] starting http server...
(node:4533) container.with() is deprecated. Use container.withBindings() instead: DeprecationWarning
(Use `node --trace-warnings ...` to show where the warning was created)
(node:4533) container.with() is deprecated. Use container.withBindings() instead: DeprecationWarning
(node:4533) container.with() is deprecated. Use container.withBindings() instead: DeprecationWarning
(node:4533) container.with() is deprecated. Use container.withBindings() instead: DeprecationWarning
IocLookupException: E_IOC_LOOKUP_FAILED: Cannot resolve "Adonis/Core/BodyParserMiddleware" namespace from the IoC Container
at /var/www/arbibe-stock-backend/start/kernel.ts(anonymous):23
18 |
19 | An array of global middleware, that will be executed in the order they
20 | are defined for every HTTP requests.
21 |
22 */
23 Server.middleware.register([
24 'Adonis/Core/BodyParserMiddleware',
25 ])
26
27 /*
28 |--------------------------------------------------------------------------
1 Function.lookupFailed
/var/www/arbibe-stock-backend/node_modules/@adonisjs/fold/build/src/Exceptions/IocLookupException.js:18
2 Ioc.lookupOrFail
/var/www/arbibe-stock-backend/node_modules/@adonisjs/fold/build/src/Ioc/index.js:254
3 IocResolver.resolve
/var/www/arbibe-stock-backend/node_modules/@adonisjs/fold/build/src/Resolver/index.js:80
4 MiddlewareStore.resolveMiddleware
/var/www/arbibe-stock-backend/node_modules/@adonisjs/http-server/build/src/MiddlewareStore/index.js:62
5 MiddlewareStore.register
/var/www/arbibe-stock-backend/node_modules/@adonisjs/http-server/build/src/MiddlewareStore/index.js:69
6 Module._compile
/var/www/arbibe-stock-backend/node_modules/pirates/lib/index.js:136
[ warn ] Underlying HTTP server died with "0 code"
[ info ] watching file system for changes
Tengo:
* node v14.17.3
* npm 6.14.13
***Este es mi package.json***
{
"name": "backend",
"version": "1.0.0",
"private": true,
"main": "index.js",
"dependencies": {
"@adonisjs/auth": "^5.1.1",
"@adonisjs/core": "^5.0.4-preview-rc-2.1",
"@adonisjs/lucid": "^10.0.0",
"@adonisjs/repl": "^1.1.6",
"luxon": "^1.26.0",
"mysql": "^2.18.1",
"phc-argon2": "^1.1.0",
"proxy-addr": "^2.0.6",
"reflect-metadata": "^0.1.13",
"source-map-support": "^0.5.19"
},
"devDependencies": {
"@adonisjs/assembler": "^3.1.1",
"adonis-preset-ts": "^2.1.0",
"pino-pretty": "^4.7.1",
"typescript": "^4.1.5",
"youch": "^2.2.1",
"youch-terminal": "^1.1.0"
},
"scripts": {
"build": "node ace build --production",
"start": "node server.js",
"dev": "node ace serve --watch"
},
"author": "",
"license": "ISC",
}
Al correr "node run dev" me aroja este error...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment