madlabsinc / mevn-cli

Light speed setup for MEVN(Mongo Express Vue Node) Apps
https://mevn.surge.sh
MIT License
825 stars 152 forks source link

Specifying dependencies with the `add` command fails for the `Nuxt.js` template #247

Closed jamesgeorge007 closed 1 year ago

jamesgeorge007 commented 1 year ago

Describe the bug

For the Nuxt.js template, invoking the add command shows a multi-select prompt from which the modules to be installed can be chosen; apart from that, it is expected to support the installation of dependencies supplied via arguments. However, this results in an error.

To Reproduce

  1. Scaffold a new MEVN stack app via mevn init app
  2. Choose Nuxt.js as the starter template.
  3. Navigate to the app directory once created and run mevn add axios. Choose any directory.
  4. Observe the error thrown after installing the dependency.

Screenshots

image