Uploaded image for project: 'AMQ Clients'
  1. AMQ Clients
  2. ENTMQCL-1818

[javascript] npm install fails due to missing configuration file for ESLint

XMLWordPrintable

    • Hide

      Use npm install --ignore-scripts to avoid eslint error.

      Show
      Use npm install --ignore-scripts to avoid eslint error.
    • Yorba, Anza

      Following the documentation on how to install js client I ran into problem with executing npm install. Since version 5 of npm, the npm install command also runs npm prepare which requires configuration file for eslint.

      > rhea@1.0.8 prepare C:\cygwin\home\Administrator\js_examples\amq-javascript-2.5.0\node_modules\rhea
      > npm run lint && npm run tsc
      
      
      > rhea@1.0.8 lint C:\cygwin\home\Administrator\js_examples\amq-javascript-2.5.0\node_modules\rhea
      > eslint lib/*.js
      
      
      Oops! Something went wrong! :(
      
      ESLint: 4.19.1.
      ESLint couldn't find a configuration file. To set up a configuration file for this project, please run:
      
          eslint --init
      
      ESLint looked for configuration files in C:\cygwin\home\Administrator\js_examples\amq-javascript-2.5.0\node_modules\rhea\lib and its ancestors. If it found none, it then looked in your home directory.
      
      If you think you already have a configuration file or if you need more help, please stop by the ESLint chat room: https://gitter.im/eslint/eslint
      
      npm ERR! code ELIFECYCLE
      npm ERR! errno 1
      npm ERR! rhea@1.0.8 lint: `eslint lib/*.js`
      npm ERR! Exit status 1
      npm ERR!
      npm ERR! Failed at the rhea@1.0.8 lint 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!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2019-11-27T13_06_04_594Z-debug.log
      npm ERR! code ELIFECYCLE
      npm ERR! errno 1
      npm ERR! rhea@1.0.8 prepare: `npm run lint && npm run tsc`
      npm ERR! Exit status 1
      npm ERR!
      npm ERR! Failed at the rhea@1.0.8 prepare 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!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2019-11-27T13_06_04_641Z-debug.log
      

            iboverma Irina Boverman
            dstuchli Dominik Stuchlík (Inactive)
            Dominik Stuchlík Dominik Stuchlík (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: