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

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -