Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in creation of new Strapi project #1355

Closed
1ncidental opened this issue Jun 9, 2018 · 4 comments
Closed

Error in creation of new Strapi project #1355

1ncidental opened this issue Jun 9, 2018 · 4 comments

Comments

@1ncidental
Copy link

Great work on the new build
New issue with Strapi 12.3
When creating a new project, if you type "Strapi new" and forget to include the name of the project.
Rather than a message about correct syntax an exception error is thrown

strapi new
[2018-06-09T14:21:49.632Z] info Creating your application... It might take a few seconds.
/usr/lib/node_modules/strapi/bin/strapi-new.js:33
  const developerMode = cliArguments.dev !== undefined;
                                     ^

TypeError: Cannot read property 'dev' of undefined
    at Command.module.exports (/usr/lib/node_modules/strapi/bin/strapi-new.js:33:38)
    at Command.listener (/usr/lib/node_modules/strapi/node_modules/commander/index.js:315:8)
    at emitTwo (events.js:126:13)
    at Command.emit (events.js:214:7)
    at Command.parseArgs (/usr/lib/node_modules/strapi/node_modules/commander/index.js:651:12)
    at Command.parse (/usr/lib/node_modules/strapi/node_modules/commander/index.js:474:21)
    at Object.<anonymous> (/usr/lib/node_modules/strapi/bin/strapi.js:165:9)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)

@derrickmehaffy
Copy link
Member

@1ncidental please use the proper bug report format.

@lauriejim
Copy link
Contributor

Hello @1ncidental , please follow the issue template so we can get a better understanding about the origin of your bug.
I will reopen your issue as soon as it follows the templating guidelines.
Thank you.

@wisniewski94
Copy link

Add a flag --dev=true. It won't help much with installation anyway. See ##1927 (comment)

@eddyystop
Copy link

eddyystop commented Dec 1, 2018

See #1927 (comment) and yeoman/generator#1098

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants