Skip to contentSkip to conversation

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.

yocto [email protected] 2 participants 3 messages Aug 27, 2020 – Aug 28, 2020

lore
Share & tools
lore
#0 lore 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

#1 lore raw

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 <[email protected]>
Sent: jueves, 27 de agosto de 2020 15:16
To: Cardenas Jose Antonio (JCARDENA) <[email protected]>
Cc: [email protected]
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

#2 lore raw

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" <[email protected]>
To: "Sandra Tobajas" <[email protected]>
Cc: "yocto" <[email protected]>
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 <[email protected]>
Sent: jueves, 27 de agosto de 2020 15:16
To: Cardenas Jose Antonio (JCARDENA) <[email protected]>
Cc: [email protected]
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