[Pkg-javascript-devel] Grunt plugins not found by Grunt

Ross Gammon javascript at the-gammons.net
Fri Dec 1 07:13:55 UTC 2017


Hi Ben,

This tripped me up too when packaging something that needed the
system-wide installed Tasks.

See if this helps:
https://wiki.debian.org/grunt

Ross
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:
>
>     grunt.loadNpmTasks('grunt-contrib-concat');
>     grunt.loadNpmTasks('grunt-contrib-uglify');
>
> 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) 
>
>
> :
>
>     Build-Depends:
>         grunt,
>         node-grunt-contrib-concat,
>         node-grunt-contrib-uglify,
>         debhelper (>= 10~)
>
> and those packages are installed:
>
>     $ aptitude search 'grunt-contrib' | grep '^i'
>     i A node-grunt-contrib-concat - Concatenate files
>     i A node-grunt-contrib-uglify - Minify JavaScript files with UglifyJS
>
> 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?
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-javascript-devel/attachments/20171201/598b56e9/attachment.html>


More information about the Pkg-javascript-devel mailing list