Yocto Project Discussions
 help / color / mirror / Atom feed
From: sandra.tobajas@savoirfairelinux.com
To: joseantonio.cardenas@niko.eu
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] npmsw fetching error: package from npm-shrinkwrap is not downloaded so "Could not install from.../SONStream" as it does not contain a package.json file.
Date: Thu, 27 Aug 2020 09:16:21 -0400 (EDT)	[thread overview]
Message-ID: <1133236501.1694319.1598534181913.JavaMail.zimbra@savoirfairelinux.com> (raw)

Hi Jose,

It seems that all your dependencies are development dependencies tagged with "dev":true in the npm-shrinkwrap.json file.

If all dependencies are for development purpose and if you want to install the package as a development package, you can add:

npmsw://${THISDIR}/${PN}/npm-shrinkwrap.json;dev=true

It seems that "npmsw.py" fetching code fails if you are trying to install a npm package with a npm-shrinkwrap.json file with no dependencies (as reported by Jean-Marie and Randy). 
I am currently preparing a patch to solve the problem reported here: https://bugzilla.yoctoproject.org/show_bug.cgi?id=13901.

If not, maybe you could send the full npm-shrinkwrap.json file to reproduce exactly the problem.

Regards,

Sandra

Sandra Tobajas
Consultant en logiciel libre | Montréal, Qc
Savoir-Faire Linux
Bureau: (+1) 514-276-5468 # 329

             reply	other threads:[~2020-08-27 13:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-27 13:16 sandra.tobajas [this message]
2020-08-28  9:44 ` [yocto] npmsw fetching error: package from npm-shrinkwrap is not downloaded so "Could not install from.../SONStream" as it does not contain a package.json file Cardenas Jose Antonio (JCARDENA)
2020-08-28 15:19   ` Sandra Tobajas
  -- strict thread matches above, loose matches on Subject: below --
2020-08-21 19:19 Cardenas Jose Antonio (JCARDENA)
2020-08-21 20:58 ` [yocto] " Randy MacLeod

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1133236501.1694319.1598534181913.JavaMail.zimbra@savoirfairelinux.com \
    --to=sandra.tobajas@savoirfairelinux.com \
    --cc=joseantonio.cardenas@niko.eu \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox