> npm install -D load-grunt-config
npm WARN deprecated [email protected]: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm ERR! Linux 4.15.0-52-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-D" "load-grunt-config"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code EMISSINGARG
npm ERR! typeerror Error: Missing required argument #1
npm ERR! typeerror at andLogAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:31:3)
npm ERR! typeerror at fetchPackageMetadata (/usr/share/npm/lib/fetch-package-metadata.js:51:22)
npm ERR! typeerror at resolveWithNewModule (/usr/share/npm/lib/install/deps.js:456:12)
npm ERR! typeerror at /usr/share/npm/lib/install/deps.js:457:7
npm ERR! typeerror at /usr/share/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror at /usr/share/npm/lib/fetch-package-metadata.js:37:12
npm ERR! typeerror at addRequestedAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:82:5)
npm ERR! typeerror at returnAndAddMetadata (/usr/share/npm/lib/fetch-package-metadata.js:117:7)
npm ERR! typeerror at pickVersionFromRegistryDocument (/usr/share/npm/lib/fetch-package-metadata.js:134:20)
npm ERR! typeerror at /usr/share/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror This is an error with npm itself. Please report this error at:
npm ERR! typeerror <http://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /var/www/html/hosemart-web/npm-debug.log
1 Answer
Without knowing more about your actual context, I think it's not finding the package.json
file. Make sure you have the following files in your Magento root:
- package.json
- Gruntfile.js
- grunt-config.json
There are "sample" files usually included in the Magento root by default that can be copied/renamed in most cases.
If this doesn't help you may have grunt mis-installed or mid-configured.
Magento Dev Docs: Compile LESS using Grunt
Gruntjs.com: Getting Started
-
I have all the 3 files in root & I also removed sample. I had same error for time-grunt, but it got resolved by sudo npm install --save-dev time-grunt but when I try same for load-grunt-config it doesn't work– ArjunApr 9, 2020 at 16:31
-
How do you mean,
npm install --save-dev load-grunt-config
does not work? What do you see in terms of error messages, etc? Did you runnpm install
ornpm install load-grunt-config
?– gnickoApr 9, 2020 at 17:16 -