[Nix-dev] Failure trying to build node package

Nikolay Amiantov ab at fmap.me
Mon Oct 6 12:18:56 CEST 2014


On 10/06/2014 10:26 AM, Wout Mertens wrote:
> To make https work, do `nix-env -i cacert` and then do `export 
> GIT_SSL_CAINFO=$HOME/.nix-profile/etc/ca-bundle.crt`. git clone should 
> now work.
Unfortunately, this does not help -- maybe I've misunderstood something? 
Also, "git clone" worked before this. and $GIT_SSL_CAINFO pointed to 
valid path "/etc/ssl/certs/ca-bundle.crt".

parsoid git:(master) ✗ ls $GIT_SSL_CAINFO
/home/shlomo/.nix-profile/etc/ca-bundle.crt
parsoid git:(master) ✗ npm --version
2.1.3
parsoid git:(master) ✗ npm install
npm ERR! git clone https://github.com/arlolra/pegjs Cloning into bare 
repository 
'/home/shlomo/.npm/_git-remotes/https-github-com-arlolra-pegjs-0488b4b2'...
npm ERR! git clone https://github.com/arlolra/pegjs warning: templates 
not found /home/shlomo/.npm/_git_remotes/_templates
npm ERR! git clone https://github.com/arlolra/pegjs fatal: unable to 
access 'https://github.com/arlolra/pegjs/' 
<https://github.com/arlolra/pegjs/%27>;;;: SSL certificate problem: 
unable to get local issuer certificate
npm ERR! Linux 3.16.3
npm ERR! argv 
"/nix/store/95nqf0by6f8rxl45lfyk4yq2082126q3-nodejs-0.10.32/bin/node" 
"/home/shlomo/.nix-profile/bin/npm" "install"
npm ERR! node v0.10.32
npm ERR! npm v2.1.3
npm ERR! code 128
...
parsoid git:(master) ✗ git clone https://github.com/arlolra/pegjs/ -b 
startOffset
Cloning into 'pegjs'...
remote: Counting objects: 3956, done.
remote: Compressing objects: 100% (1631/1631), done.
remote: Total 3956 (delta 2189), reused 3956 (delta 2189)
Receiving objects: 100% (3956/3956), 2.68 MiB | 534.00 KiB/s, done.
Resolving deltas: 100% (2189/2189), done.
Checking connectivity... done.

> We're currently thinking about how to solve these types of problems, 
> see the thread this month.
I'm only starting to understand Nix and make contributions, but isn't 
"makeWrapper" a solution?

--
Nikolay.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20141006/a85740f0/attachment.html 


More information about the nix-dev mailing list