|
From: shayb <sh...@jf...> - 2016-07-22 15:05:10
|
Hi,
>From the npm documentation, it seems that the dependencies should always be
wrapped with curly bracket {}.
What about repacking the package and replace the [] with {}? if you have
the sources, you can just modify the package.json file and rebuild it, if
you only have the archive, you can repack it with modifying the internal
package.json file (the one that inside the archive) and upload it to
Artifactory using the Web-UI.
Shay
On Tue, Jul 12, 2016 at 2:04 PM, rmandeville [via Artifactory] <
ml-...@n2...> wrote:
> We are running Artifactory Pro 4.5.1 rev 40117 on Ubuntu Trusty Tahr, and
> are having troubles with an NPM local repository.
>
> For stability purposes, we don't allow our official builds to reach out to
> the internet, or even use a remote Artifactory repository; we must use
> Artifactory local repositories. Any artifacts our build needs must be
> uploaded to these repositories.
>
> We use the JSONLint <https://github.com/zaach/jsonlint> NPM package.
> This has a dependency on another package called JSV
> <https://github.com/garycourt/JSV>. JSV, however, has a tiny problem.
> Its package.json
> <https://github.com/garycourt/JSV/blob/master/package.json> has
> "dependencies" set to "[]", and the standard appears to be a hash ("{}")
> rather than an array ("[]").
>
> Artifactory has no problem pulling JSV into a remote repository from the
> internet. However, if you try to upload a copy to a local repo, you get
> the following error:
>
> Cannot deploy file JSV-4.0.2.tgz. Cause: Can not deserialize instance of java.util.LinkedHashMap out of START_ARRAY token at [Source: org.apache.commons.compress.archivers.tar.TarArchiveInputStream@485b0d83; line: 28, column: 3] (through reference chain: org.jfrog.repomd.npm.model.NpmMetadata["dependencies"])
>
>
> Is there any way to get JSV-4.0.2 into a local Artifactory NPM repository?
>
> Before anyone asks, a bug fix to JSV is unlikely: 4.0.2 is the latest and
> only release, published in 2012.
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://forums.jfrog.org/Marginal-NPM-artifact-uploads-remotely-not-locally-tp7581098.html
> To start a new topic under Artifactory - Users, email
> ml-...@n2...
> To unsubscribe from Artifactory, click here
> <http://forums.jfrog.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2380776&code=c2hheWJAamZyb2cuY29tfDIzODA3NzZ8MTU0NDg2MTQ3OA==>
> .
> NAML
> <http://forums.jfrog.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
View this message in context: http://forums.jfrog.org/Marginal-NPM-artifact-uploads-remotely-not-locally-tp7581098p7581113.html
Sent from the Artifactory - Users mailing list archive at Nabble.com. |