[Pkg-javascript-devel] node-gyp install path question

Pirate Praveen praveen at onenetbeyond.org
Sun Oct 28 07:22:20 GMT 2018


On 9/14/18 9:55 PM, Pirate Praveen wrote:
> 
> 
> On 2018, സെപ്റ്റംബർ 14 9:44:15 PM IST, "Jérémy Lal" <kapouer at melix.org> wrote:
>> Le ven. 14 sept. 2018 à 18:12, Pirate Praveen
>> <praveen at onenetbeyond.org> a
>> écrit :
>>
>>> Hi Jeremy,
>>>
>>> Any reason node-gyp is installed in /usr/share/node-gyp and not in
>>> /usr/share/nodejs/node-gyp?
>>>
>>
>> Surely because of DFHS ?
> 
> So is it a bug in npm-lifecycle to expect 'node-gyp/bin/node-gyp'?
> 
>> Jérémy
> 

node is unable to find node-gyp as a module. Isn't this a bug?

node -e "require('node-gyp');"
module.js:549
    throw err;
    ^

Error: Cannot find module 'node-gyp'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at [eval]:1:1
    at ContextifyScript.Script.runInThisContext (vm.js:50:33)
    at Object.runInThisContext (vm.js:139:38)
    at Object.<anonymous> ([eval]-wrapper:6:22)
    at Module._compile (module.js:652:30)
    at evalScript (bootstrap_node.js:466:27)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20181028/dcdb7cea/attachment.sig>


More information about the Pkg-javascript-devel mailing list