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

Production dependencies are not satified #54

Closed
AndresCidoncha opened this issue Feb 7, 2018 · 3 comments
Closed

Production dependencies are not satified #54

AndresCidoncha opened this issue Feb 7, 2018 · 3 comments

Comments

@AndresCidoncha
Copy link

Using the Vue_Starter package, npm install --production doesn't install the required dependencies.

Steps to reproduce:

  1. Clone this repo
  2. Open a terminal in the Vue_Starter folder
  3. Run npm install --production
  4. Run npm run build

This steps are supposed to build the web with only production dependencies (defined in dependencies section of package.json) but the last step fails.

Logs:

$ npm install --production

> bootstrap-vue@2.0.0-rc.1 postinstall /home/andrescidoncha/Documents/CoreUI-Vue/Vue_Starter/node_modules/bootstrap-vue
> opencollective postinstall || exit 0


     *** Thank you for using bootstrap-vue! ***

Please consider donating to our open collective
     to help us maintain this package.

  https://opencollective.com/bootstrap-vue/donate

                    ***

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN bootstrap@4.0.0 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself.

added 63 packages in 4.248s


$ npm run build

> @coreui/vue@1.0.10 build /home/andrescidoncha/Documents/CoreUI-Vue/Vue_Starter
> node build/build.js

module.js:471
    throw err;
    ^

Error: Cannot find module 'chalk'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/andrescidoncha/Documents/CoreUI-Vue/Vue_Starter/build/check-versions.js:1:75)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @coreui/vue@1.0.10 build: `node build/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @coreui/vue@1.0.10 build 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!     /home/andrescidoncha/.npm/_logs/2018-02-07T10_01_46_293Z-debug.log
@xidedix
Copy link
Member

xidedix commented Feb 7, 2018

Hi @AndresCidoncha
Thanks for the input... but there must be some kind of misunderstanding. It doesn't work that way.
devDependencies are necessary to run build scripts.

All production required modules inside node_modules go to dist\static\js\vendors during the build.

@AndresCidoncha
Copy link
Author

Maybe I misunderstand the concept of the --production flag... But if devDependencies are used to build the final product, what's the point of calling this flag --production?

Sorry about the no-issue 🙏

@xidedix
Copy link
Member

xidedix commented Feb 7, 2018

We don't use --production flag. Probably other build systems do.

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

2 participants