Not able to run pizza luvr locally.
Closed this issue · 7 comments
I am getting below error
$ npm start
pizza-luvrs@1.0.0 start C:\DeveloperWorks\Tools\pizza-luvrs
node index.js
Error: Cannot set uncompiled validation rules without configuring a validator
at new module.exports (C:\DeveloperWorks\Tools\pizza-luvrs\node_modules@hapi\hapi\node_modules@hapi\hoek\lib\error.js:23:19)
at Object.module.exports [as assert] (C:\DeveloperWorks\Tools\pizza-luvrs\node_modules@hapi\hapi\node_modules@hapi\hoek\lib\assert.js:20:11)
at Object.exports.compile (C:\DeveloperWorks\Tools\pizza-luvrs\node_modules@hapi\hapi\lib\validation.js:48:10)
at module.exports.internals.Route._setupValidation (C:\DeveloperWorks\Tools\pizza-luvrs\node_modules@hapi\hapi\lib\route.js:197:43)
at new module.exports.internals.Route (C:\DeveloperWorks\Tools\pizza-luvrs\node_modules@hapi\hapi\lib\route.js:122:14)
at internals.Server._addRoute (C:\DeveloperWorks\Tools\pizza-luvrs\node_modules@hapi\hapi\lib\server.js:498:23)
at internals.Server.route (C:\DeveloperWorks\Tools\pizza-luvrs\node_modules@hapi\hapi\lib\server.js:491:22)
at Object.module.exports.register (C:\DeveloperWorks\Tools\pizza-luvrs\routes\index.js:25:10)
at startServer (C:\DeveloperWorks\Tools\pizza-luvrs\index.js:12:10)
Can you please help me to resolve the issue?
Hi @ShoumoDev,
Sorry you're having trouble! I believe this is an issue from dependency versions. Can you verify your dependency versions match the package.json
file from this repository? Specifically, you'll want to check the hapi
versions, since there is a newer version of that library that doesn't work with the rest of the project. Let me know if you have more issues!
If I downgrade happi version to 18.3.1 I am getting below error.
$ npm install
npm WARN deprecated @hapi/hapi@18.3.1: This version is deprecated
added 1 package from 1 contributor, removed 26 packages, updated 50 packages and audited 163 packages in 15.877s
found 6 vulnerabilities (1 low, 1 moderate, 4 high)
run npm audit fix
to fix them, or npm audit
for details
Also, I am using node version 14.3.0 and npm version 6.14.5.
Please How can I resolve the issue?
Hi @ShoumoDev, Those aren't errors, they're just security advisories. You can use those versions for demo purposes. Try running npm start
and see if it works.
You might want to try node.js v12.x. I haven't tested the app with 14 yet.
Awesome!