1 Reply Latest reply on Sep 25, 2017 5:43 PM by Greg Stachnick-Oracle

    JET application as NodeJS Build Issue

    Rishi-Agrawal-Oracle

      Hi All,

       

      We are trying to deploy a JET application as NodeJS application in ACCS.

       

      We are trying to build the application in DevCS using below build steps:

       

      npm install

      npm install grunt-oraclejet

      npm install load-grunt-config

      npm install oraclejet-tooling

      grunt build

      cd web

      zip -r oabc.zip .

       

      However, it errors out with below Error:

       

      + npm install oraclejet-tooling

      npm WARN engine oraclejet-tooling@3.2.0: wanted: {"node":">=4.0.0"} (current: {"node":"0.12.7","npm":"2.11.3"})

      oraclejet-tooling@3.2.0 node_modules/oraclejet-tooling

      ├── lodash.isfunction@3.0.8

      ├── lodash.escaperegexp@4.1.2

      ├── connect-livereload@0.6.0

      ├── lodash.difference@4.5.0

      ├── lodash.union@4.6.0

      ├── lodash.mergewith@4.6.0

      ├── lodash.remove@4.7.0

      ├── xmldom@0.1.27

      ├── opn@4.0.2 (object-assign@4.1.1, pinkie-promise@2.0.1)

      ├── fs-extra@1.0.0 (klaw@1.3.1, jsonfile@2.4.0, graceful-fs@4.1.11)

      ├── glob@7.1.2 (path-is-absolute@1.0.1, inherits@2.0.3, fs.realpath@1.0.0, minimatch@3.0.4, inflight@1.0.6, once@1.4.0)

      ├── tiny-lr@1.0.5 (object-assign@4.1.1, livereload-js@2.2.2, qs@6.5.1, body@5.1.0, faye-websocket@0.10.0, debug@2.6.9)

      ├── serve-index@1.9.0 (escape-html@1.0.3, parseurl@1.3.2, batch@0.6.1, accepts@1.3.4, mime-types@2.1.17, debug@2.6.8, http-errors@1.6.2)

      ├── connect@3.6.5 (utils-merge@1.0.1, parseurl@1.3.2, debug@2.6.9, finalhandler@1.0.6)

      ├── serve-static@1.12.6 (escape-html@1.0.3, encodeurl@1.0.1, parseurl@1.3.2, send@0.15.6)

      ├── uglify-js@2.8.29 (uglify-to-browserify@1.0.2, source-map@0.5.7, yargs@3.10.0)

      └── gaze@1.1.2 (globule@1.2.0)

      + grunt build

      Loading "help.js" tasks...ERROR

      >> SyntaxError: /home/builder/hudson/workspace/developer31013-a457995_osca360portal_17944.SampleBuild/node_modules/grunt-oraclejet/tasks/help.js:11

      >> const fs = require('fs');

      >> ^^^^^

      >> Use of const in strict mode.

      Loading "oraclejet-build.js" tasks...ERROR

      >> SyntaxError: /home/builder/hudson/workspace/developer31013-a457995_osca360portal_17944.SampleBuild/node_modules/grunt-oraclejet/tasks/oraclejet-build.js:10

      >> const ojet = require('oraclejet-tooling');

      >> ^^^^^

      >> Use of const in strict mode.

      Loading "oraclejet-serve.js" tasks...ERROR

      >> SyntaxError: /home/builder/hudson/workspace/developer31013-a457995_osca360portal_17944.SampleBuild/node_modules/grunt-oraclejet/tasks/oraclejet-serve.js:11

      >> const ojet = require('oraclejet-tooling');

      >> ^^^^^

      >> Use of const in strict mode.

      Loading "utils.js" tasks...ERROR

      >> SyntaxError: /home/builder/hudson/workspace/developer31013-a457995_osca360portal_17944.SampleBuild/node_modules/grunt-oraclejet/tasks/utils.js:10

      >> const CORDOVA_CONFIG_XML = 'config.xml';

      >> ^^^^^

      >> Use of const in strict mode.

      Loading "help.js" tasks...ERROR

      >> SyntaxError: /home/builder/hudson/workspace/developer31013-a457995_osca360portal_17944.SampleBuild/node_modules/grunt-oraclejet/tasks/help.js:11

      >> const fs = require('fs');

      >> ^^^^^

      >> Use of const in strict mode.

      Loading "oraclejet-build.js" tasks...ERROR

      >> SyntaxError: /home/builder/hudson/workspace/developer31013-a457995_osca360portal_17944.SampleBuild/node_modules/grunt-oraclejet/tasks/oraclejet-build.js:10

      >> const ojet = require('oraclejet-tooling');

      >> ^^^^^

      >> Use of const in strict mode.

      Loading "oraclejet-serve.js" tasks...ERROR

      >> SyntaxError: /home/builder/hudson/workspace/developer31013-a457995_osca360portal_17944.SampleBuild/node_modules/grunt-oraclejet/tasks/oraclejet-serve.js:11

      >> const ojet = require('oraclejet-tooling');

      >> ^^^^^

      >> Use of const in strict mode.

      Loading "utils.js" tasks...ERROR

      >> SyntaxError: /home/builder/hudson/workspace/developer31013-a457995_osca360portal_17944.SampleBuild/node_modules/grunt-oraclejet/tasks/utils.js:10

      >> const CORDOVA_CONFIG_XML = 'config.xml';

      >> ^^^^^

      >> Use of const in strict mode.

       

      Running "build" task

      Warning: Task "oraclejet-build:release" not found.  Use --force to continue.

       

      Aborted due to warnings.

      Archiving artifacts

      Finished: FAILURE

       

      I am suspecting node version is an issue.

      npm WARN engine oraclejet-tooling@3.2.0: wanted: {"node":">=4.0.0"} (current: {"node":"0.12.7","npm":"2.11.3"})

       

      Is there a way we can upgrade this version in DevCS like we can do it in ACCS for an application.

       

      Thanks

      Rishi