Comments (4)
@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.
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.
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.
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)
- Wording in sample-gruntfile
- grunt.template.today - year reminder HOT 2
- Getting started should explain what Grunt actually does HOT 3
- "somebody remind me to update this date every year so the docs appear current" HOT 1
- grunt.util deprecated functions should be indicated in the tutorial
- RE: somebody remind me to update this date every year so the docs appear current HOT 2
- Missing important information in documentation HOT 1
- Update JSHint
- Grun server restart nodejs HOT 2
- Change current year in the last example of templates HOT 2
- Every time, it report this error,but I truely use npm install grunt-cli -g! HOT 2
- grunt.file.expand negate pattern HOT 1
- It should be clarified that Files should be declared within targets
- Documentation should indicate "not for Windows" if that is true HOT 1
- Built with Grunt badge broken HOT 2
- If you don't specify a task, but a task named "default" has been defined, that task will run (unsurprisingly) by default.
- Loading "Gruntfile.js" tasks...ERROR HOT 1
- Open redirect bug issue [ gruntjs.com ]
- Grunt compile but not display source map .less in browser In magento 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-docs.