From: "Sandra Tobajas" <sandra.tobajas@savoirfairelinux.com>
To: joseantonio cardenas <JoseAntonio.Cardenas@niko.eu>
Cc: yocto <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: Fri, 28 Aug 2020 11:19:19 -0400 (EDT) [thread overview]
Message-ID: <166614646.1719840.1598627959904.JavaMail.zimbra@savoirfairelinux.com> (raw)
In-Reply-To: <PR2PR08MB465127414358B496F9CB6AD98B520@PR2PR08MB4651.eurprd08.prod.outlook.com>
Hi Jose,
I have tested your npm-shrinkwrap.json file with this patch (https://patchwork.openembedded.org/patch/175755/) and it worked.
Can you test it on your machine ?
Regards,
Sandra
Sandra Tobajas
Consultant en logiciel libre | Montréal, Qc
Savoir-Faire Linux
Bureau: (+1) 514-276-5468 # 329
----- Original Message -----
From: "joseantonio cardenas" <JoseAntonio.Cardenas@niko.eu>
To: "Sandra Tobajas" <sandra.tobajas@savoirfairelinux.com>
Cc: "yocto" <yocto@yoctoproject.org>
Sent: Friday, August 28, 2020 9:44:59 AM
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.
Hi Sandra, thank you by your info. It was very useful to fetch development modules from shrinkwrap file.
I attach you the shrinkwrap file with no dependencies that I were trying to fetch.
Regards.
Jose.
-----Original Message-----
From: Sandra Tobajas <sandra.tobajas@savoirfairelinux.com>
Sent: jueves, 27 de agosto de 2020 15:16
To: Cardenas Jose Antonio (JCARDENA) <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.
CAUTION: This email originated from outside the organization. Do not click on links or open attachments unless you recognize the sender and know the content is safe.
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
next prev parent reply other threads:[~2020-08-28 15:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-27 13:16 [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 sandra.tobajas
2020-08-28 9:44 ` Cardenas Jose Antonio (JCARDENA)
2020-08-28 15:19 ` Sandra Tobajas [this message]
-- 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=166614646.1719840.1598627959904.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