LANGUAGE/!$%!% ERROR NOTE 2016. 2. 17. 19:35

///// Nodejs (노드제이에스)




///// gulp-jshint

Javascript의 문법을 검사해주는 걸프의 플러그인




///// 에러 (Error)

npm WARN gulp-jshint@2.0.0 requires a peer of jshint@2.x but none was installed.


module.js:340

    throw err;

    ^


Error: Cannot find module 'jshint/src/cli'

    at Function.Module._resolveFilename (module.js:338:15)

    at Function.Module._load (module.js:289:25)

    at Module.require (module.js:366:17)

    at require (module.js:385:17)

    at Object.<anonymous> (D:\dev_by_sj\test\init_node_gulp\node_modules\gulp-jshint\src\extract.js:1:79)

    at Module._compile (module.js:435:26)

    at Object.Module._extensions..js (module.js:442:10)

    at Module.load (module.js:356:32)

    at Function.Module._load (module.js:313:12)

    at Module.require (module.js:366:17)

    at require (module.js:385:17)




///// 문제 (Problem)




///// 해결 (Solution)

npm install --save-dev jshint gulp-jshint




///// 참조 (Reference)

Gulp Error: Cannot find module 'jshint/src/cli':

http://stackoverflow.com/questions/33984558/gulp-error-cannot-find-module-jshint-src-cli