javascript - Grunt doesn't see my devDependency module -


i installed this:

https://www.npmjs.com/package/derequire

with

npm install derequire --save-dev 

it appeared in package.json file

"devdependencies": {     "derequire": "^2.0.3", 

but when in gruntfile.js do:

grunt.loadnpmtasks('derequire'); 

i following error: local npm module "derequire" not found. installed?

other dependencies work fine.

i noticed other dependencies prefixed 'grunt-' (e.g.: 'grunt-contrib-concat'). mean can't use npm derequire in grunt? how can enable it?

grunt.loadnpmtasks('derequire'); doesn't work because it's supposed used grunt plugins. see reference. can't use regular npm packages.

for list of grunt plugins, take here.


Comments

Popular posts from this blog

android - How to read a column value in parse.com without accessing an object or a pointer -

ios - NSDateFormatter: error in converting date -

timer - Java TimerTask cancel -