This tripped me up too when packaging something that needed the
system-wide installed Tasks.
See if this helps:
On 12/01/2017 05:18 AM, Ben Finney wrote:
> Howdy all,
> I am attempting to satisfy the build dependencies for a package using
> Grunt as its build system. The Grunt task is not finding the plug-ins
> installed by the Debian packages for those plug-ins.
> The ‘Gruntfile.js’ (attached to this message)
> declares these plug-in
> dependencies with:
> which are then referenced in the task definition:
> grunt.registerTask('default', ['connect', 'watch']);
> grunt.registerTask('build', ['concat', 'uglify']);
> So, I have these build dependencies in ‘debian/control’ (attached to
> this message)
> debhelper (>= 10~)
> and those packages are installed:
> $ aptitude search 'grunt-contrib' | grep '^i'
> i A node-grunt-contrib-concat - Concatenate files
> Yet, with those packages installed, Grunt complains the libraries are
> not installed:
> $ grunt build
> >> Local Npm module "grunt-contrib-concat" not found. Is it installed?
> >> Local Npm module "grunt-contrib-uglify" not found. Is it installed?
> Warning: Task "concat" not found. Use --force to continue.
> Aborted due to warnings.
> What have I done wrong? How is the Debian ‘grunt’ package not finding
> Grunt libraries installed by other Debian packages?