James Nobles
James Nobles

Reputation: 1

Strapi-provider-upload-cloudinary install but strapi says module no

I'm trying to switch from the AWS S3 upload provider to the cloudinary upload provider in Strapi. It worked great with the AWS S3 provider, but after install the cloudinary module the app will not start back up. Says the module is not found and to install strapi-provider-upload-cloudinary.

Cloudinary is in the package.json, it is in the node_modules folder. Strapi 3.6.8 running in Docker with Postgres mount to a local volume /app:/srv/app node 14.17 and npm 7

NPM list output excerpt

├─┬ [email protected]

│ ├─┬ [email protected] │ │ ├── [email protected] │ │ ├── [email protected] │ │ ├── [email protected] deduped │ │ └── [email protected]

Package.json dependencies

"dependencies": {
"knex": "0.21.18",
"pg": "8.5.1",
"strapi": "3.6.8",
"strapi-admin": "3.6.8",
"strapi-connector-bookshelf": "3.6.8",
"strapi-plugin-ckeditor5": "^1.13.0",
"strapi-plugin-content-manager": "3.6.8",
"strapi-plugin-content-type-builder": "3.6.8",
"strapi-plugin-documentation": "3.6.8",
"strapi-plugin-email": "3.6.8",
"strapi-plugin-i18n": "3.6.8",
"strapi-plugin-upload": "3.6.8",
"strapi-plugin-users-permissions": "3.6.8",
"strapi-provider-upload-cloudinary": "^3.6.8",
"strapi-utils": "3.6.8"

},

Output from Docker Starting your app...

[2021-09-02T16:32:04.223Z] error Error: Cannot find module 'strapi-provider-upload-cloudinary'

Require stack:

[2021-09-02T16:32:04.229Z] error bootstrap function in plugin "upload" failed

[2021-09-02T16:32:04.230Z] error Error: The provider package isn't installed. Please run npm install strapi-provider-upload-cloudinary

at createProvider (/srv/app/node_modules/strapi-plugin-upload/config/functions/bootstrap.js:54:11)

at module.exports (/srv/app/node_modules/strapi-plugin-upload/config/functions/bootstrap.js:13:36)

at execLifecycle (/srv/app/node_modules/strapi/lib/Strapi.js:437:14)

at /srv/app/node_modules/strapi/lib/Strapi.js:447:16

at Array.map (<anonymous>)

at Strapi.runLifecyclesFunctions (/srv/app/node_modules/strapi/lib/Strapi.js:444:33)

at Strapi.load (/srv/app/node_modules/strapi/lib/Strapi.js:379:16)

at async Strapi.start (/srv/app/node_modules/strapi/lib/Strapi.js:196:9)

Upvotes: 0

Views: 2677

Answers (1)

Martin Čapek
Martin Čapek

Reputation: 1

You have to delete node_modules and reinstall them. Strapi image installs node modules only when node_modules folder missing. So if you added any dependency later that dependency will not be installed automatically.

Upvotes: 0

Related Questions