Created
October 3, 2018 02:06
-
-
Save gwpantazes/8711bf0cf15165fb04e374aa4659f11c to your computer and use it in GitHub Desktop.
strapi-examples repo hello-world example fails on npm start without installing mongoose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ npm start | |
> [email protected] start /Users/georgep/Documents/GitHub/strapi-examples/hello-world | |
> node server.js | |
(node:3567) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect. | |
/Users/georgep/Documents/GitHub/strapi-examples/hello-world/node_modules/strapi-mongoose/node_modules/mongodb/lib/operations/mongo_client_ops.js:466 | |
throw err; | |
^ | |
Error: Cannot find module 'mongoose' | |
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15) | |
at Function.Module._load (internal/modules/cjs/loader.js:507:25) | |
at Module.require (internal/modules/cjs/loader.js:637:17) | |
at require (internal/modules/cjs/helpers.js:20:18) | |
at Object.<anonymous> (/Users/georgep/Documents/GitHub/strapi-examples/hello-world/node_modules/mongoose-float/lib/index.js:3:16) | |
at Module._compile (internal/modules/cjs/loader.js:689:30) | |
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) | |
at Module.load (internal/modules/cjs/loader.js:599:32) | |
at tryModuleLoad (internal/modules/cjs/loader.js:538:12) | |
at Function.Module._load (internal/modules/cjs/loader.js:530:3) | |
at Module.require (internal/modules/cjs/loader.js:637:17) | |
at require (internal/modules/cjs/helpers.js:20:18) | |
at module.exports.mongoose (/Users/georgep/Documents/GitHub/strapi-examples/hello-world/node_modules/strapi-mongoose/lib/utils/index.js:8:3) | |
at _.forEach (/Users/georgep/Documents/GitHub/strapi-examples/hello-world/node_modules/strapi-mongoose/lib/index.js:272:55) | |
at /Users/georgep/Documents/GitHub/strapi-examples/hello-world/node_modules/lodash/lodash.js:4911:15 | |
at baseForOwn (/Users/georgep/Documents/GitHub/strapi-examples/hello-world/node_modules/lodash/lodash.js:2996:24) | |
at /Users/georgep/Documents/GitHub/strapi-examples/hello-world/node_modules/lodash/lodash.js:4880:18 | |
at Function.forEach (/Users/georgep/Documents/GitHub/strapi-examples/hello-world/node_modules/lodash/lodash.js:9344:14) | |
at _.forEach (/Users/georgep/Documents/GitHub/strapi-examples/hello-world/node_modules/strapi-mongoose/lib/index.js:265:17) | |
at /Users/georgep/Documents/GitHub/strapi-examples/hello-world/node_modules/lodash/lodash.js:4911:15 | |
at baseForOwn (/Users/georgep/Documents/GitHub/strapi-examples/hello-world/node_modules/lodash/lodash.js:2996:24) | |
at /Users/georgep/Documents/GitHub/strapi-examples/hello-world/node_modules/lodash/lodash.js:4880:18 | |
npm ERR! code ELIFECYCLE | |
npm ERR! errno 1 | |
npm ERR! [email protected] start: `node server.js` | |
npm ERR! Exit status 1 | |
npm ERR! | |
npm ERR! Failed at the [email protected] start script. | |
npm ERR! This is probably not a problem with npm. There is likely additional logging output above. | |
npm ERR! A complete log of this run can be found in: | |
npm ERR! /Users/georgep/.npm/_logs/2018-10-03T01_58_35_476Z-debug.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment