You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting the below error when I run npm run build
Loading "jshint.js" tasks...ERROR
>> TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string
Warning: Task "jshint" not found. Use --force to continue.
Aborted due to warnings.
npm ERR! code ELIFECYCLE
npm ERR! errno 3
npm ERR! [email protected] build: `node -e "require('grunt').tasks(['build']);"`
npm ERR! Exit status 3
npm ERR!
npm ERR! Failed at the [email protected] build 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! /Users/Mac/.npm/_logs/2018-01-12T04_27_38_104Z-debug.log
When I included require('load-grunt-tasks')(grunt); the error occurred. When I replace to require('load-grunt-tasks')(grunt, {pattern: ['grunt-*', '@*/grunt-*', "!grunt-contrib-jshint"]});, error gone.
When I run build after npm install I am getting this error. But if I install grunt globally and run
grunt build
it passes the task.This is package.json
I am getting the below error when I run
npm run build
gruntfile.js
When I included
require('load-grunt-tasks')(grunt);
the error occurred. When I replace torequire('load-grunt-tasks')(grunt, {pattern: ['grunt-*', '@*/grunt-*', "!grunt-contrib-jshint"]});
, error gone.#277
The text was updated successfully, but these errors were encountered: