Giter Club home page Giter Club logo

Comments (4)

vladikoff avatar vladikoff commented on August 11, 2024

@ManasaVTR, your node js version seems very old

node version - 6.17.1 is that right?

LTS is now at version 18

from grunt-docs.

ManasaVTR avatar ManasaVTR commented on August 11, 2024

Yes . We haven't updated node version because few of the dependencies might break .
Do you think updating node version can resolve the issue with grunct-cli ?

from grunt-docs.

ManasaVTR avatar ManasaVTR commented on August 11, 2024

After increasing Node Js to 17.0.0 I am getting the below error :

grunt --version
grunt-cli v1.4.3
node:internal/modules/cjs/loader:936
throw err;
^

Error: Cannot find module 'getobject'
Require stack:

  • C:\workspace\ui\ri-desktop_accelus-ri-app\ui\node_modules\grunt-legacy-util\index.js
  • C:\workspace\ui\ri-desktop_accelus-ri-app\ui\node_modules\grunt\lib\grunt.js
  • C:\Users\6110853\AppData\Roaming\nvm\v17.0.0\node_modules\grunt-cli\bin\grunt
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:999:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object. (C:\workspace\ui\ri-desktop_accelus-ri-app\ui\node_modules\grunt-legacy-util\index.js:20:18)
    at Module._compile (node:internal/modules/cjs/loader:1095:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1147:10)
    at Module.load (node:internal/modules/cjs/loader:975:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:999:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    'C:\workspace\ui\ri-desktop_accelus-ri-app\ui\node_modules\grunt-legacy-util\index.js',
    'C:\workspace\ui\ri-desktop_accelus-ri-app\ui\node_modules\grunt\lib\grunt.js',
    'C:\Users\6110853\AppData\Roaming\nvm\v17.0.0\node_modules\grunt-cli\bin\grunt'
    ]
    }

Node.js v17.0.0

from grunt-docs.

ManasaVTR avatar ManasaVTR commented on August 11, 2024

With node version 8

PS C:\workspace\ui\ri-desktop_accelus-ri-app\ui> grunt --version
C:\Users\6110853\AppData\Roaming\nvm\v8.2.0\node_modules\grunt-cli\node_modules\micromatch\index.js:44
let isMatch = picomatch(String(patterns[i]), { ...options, onResult }, true);
^^^

SyntaxError: Unexpected token ...
at createScript (vm.js:74:10)
at Object.runInThisContext (vm.js:116:10)
at Module._compile (module.js:533:28)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (C:\Users\6110853\AppData\Roaming\nvm\v8.2.0\node_modules\grunt-cli\node_modules\findup-sync\index.js:12:10)

from grunt-docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.