diff --git a/packages/strapi/bin/strapi-start.js b/packages/strapi/bin/strapi-start.js index def2b3a857..ddb022ce8b 100755 --- a/packages/strapi/bin/strapi-start.js +++ b/packages/strapi/bin/strapi-start.js @@ -27,6 +27,11 @@ const { cli, logger } = require('strapi-utils'); */ module.exports = function() { + // Check that we're in a valid Strapi project. + if (!cli.isStrapiApp()) { + return logger.error('This command can only be used inside a Strapi project.'); + } + try { const strapi = function () { try {