Re: [yocto-builds] npmsw fetcher error : npm-shrinkwrap.json' has invalid parameters. Unsupported dependency: arr-flatten


Jean-Marie Lemetayer
 

Hi Jose and Randy,

Here is a quick and unverified response on my phone.

It seems that your shrinkwrap has no "resolved" fields nor "integrity" fields. See https://docs.npmjs.com/files/package-lock.json

Try re-generate one manually.

Best regards,
Jean-Marie

Le jeu. 20 août 2020 22:53, Randy MacLeod <randy.macleod@...> a écrit :
Hi Jose,

On 2020-08-20 5:33 a.m., Cardenas Jose Antonio (JCARDENA) wrote:

Hi all,

 

I’m trying to fech packages and dependencies from a nmp-shrinkwrap.json file but I get next error:

 

                npm-shrinkwrap.json' has invalid parameters. Unsupported dependency: arr-flatten

I don't know but you'll get more people on the main yocto list so I've replied there.

People often mistakenly use yocto-builds so we're going to drop that list at some point.

../Randy


 

The fragment of shrinkwrap file is

 

 

{

  "name": "Gateway_node_webserver",

  "version": "2.5.0",

  "lockfileVersion": 1,

  "requires": true,

  "dependencies": {

    "chokidar": {

      "version": "1.0.6",

      "requires": {

        "anymatch": "1.3.2",

        "arrify": "1.0.1",

        "async-each": "0.1.6",

        "glob-parent": "1.3.0",

        "is-binary-path": "1.0.1",

        "is-glob": "1.1.3",

        "path-is-absolute": "1.0.1",

        "readdirp": "1.4.0"

      },

      "dependencies": {

        "anymatch": {

          "version": "1.3.2",

          "requires": {

            "micromatch": "2.3.11",

            "normalize-path": "2.1.1"

          },

          "dependencies": {

            "micromatch": {

              "version": "2.3.11",

              "requires": {

                "arr-diff": "2.0.0",

                "array-unique": "0.2.1",

                "braces": "1.8.5",

                "expand-brackets": "0.1.5",

                "extglob": "0.3.2",

                "filename-regex": "2.0.1",

                "is-extglob": "1.0.0",

                "is-glob": "2.0.1",

                "kind-of": "3.2.2",

                "normalize-path": "2.1.1",

                "object.omit": "2.0.1",

                "parse-glob": "3.0.4",

                "regex-cache": "0.4.4"

              },

              "dependencies": {

                "arr-diff": {

                  "version": "2.0.0",

                  "requires": {

                    "arr-flatten": "1.1.0"

                  },

                  "dependencies": {

                    "arr-flatten": {

                      "version": "1.1.0"

                    }

                  }

                },

                "array-unique": {

                  "version": "0.2.1"

                },

 

 

The recipe SRC_URI is :

 

SRC_URI = " \

           npmsw://${THISDIR}/${PN}/npm-shrinkwrap.json \

           "

 

Any idea why is failing the fetch?

 

Regards.



    


-- 
# Randy MacLeod
# Wind River Linux

Join yocto@lists.yoctoproject.org to automatically receive all group messages.