<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Ben,<br>
<br>
This tripped me up too when packaging something that needed the
system-wide installed Tasks.<br>
<br>
See if this helps:<br>
<a class="moz-txt-link-freetext" href="https://wiki.debian.org/grunt">https://wiki.debian.org/grunt</a><br>
<br>
Ross<br>
On 12/01/2017 05:18 AM, Ben Finney wrote:<br>
</div>
<blockquote type="cite" cite="mid:85a7z3t71b.fsf@benfinney.id.au">
<pre wrap="">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)</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap=""> 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) </pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">:
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?
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<p><br>
</p>
</body>
</html>