I was hoping not to pull in somebody else’s project and have to build it 
ourselves (this alone can generate a half-kilo of documentation in our 
development environment), but I guess I’ll have to.

--Rob

From: shayb [via Artifactory] [mailto:[email protected]]
Sent: Friday, July 22, 2016 11:05 AM
To: Rob Mandeville
Subject: Re: Marginal NPM artifact uploads remotely, not locally

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] <[hidden 
email]</user/SendEmail.jtp?type=node&node=7581113&i=0>> 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<mailto: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 [hidden 
email]</user/SendEmail.jtp?type=node&node=7581113&i=1>
To unsubscribe from Artifactory, click here.
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>


________________________________
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-tp7581098p7581113.html
To unsubscribe from Marginal NPM artifact uploads remotely, not locally, click 
here<http://forums.jfrog.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=7581098&code=cm1hbmRldmlsbGVAZGVrYXJlc2VhcmNoLmNvbXw3NTgxMDk4fC03OTQzNTMzMTI=>.
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.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-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>


Click 
here<https://www.mailcontrol.com/sr/v2By8fHpIdDGX2PQPOmvUtVTDJsKpCsg6EkCD7aw1e7RSHvenj+Icc7OH3LCmUnqAaYgz+tX2v4FoPzuIXnePg==>
 to report this email as spam.

This e-mail and the information, including any attachments it contains, are 
intended to be a confidential communication only to the person or entity to 
whom it is addressed and may contain information that is privileged. If the 
reader of this message is not the intended recipient, you are hereby notified 
that any dissemination, distribution or copying of this communication is 
strictly prohibited. If you have received this communication in error, please 
immediately notify the sender and destroy the original message. Thank you. 
Please consider the environment before printing this email.




--
View this message in context: 
http://forums.jfrog.org/Marginal-NPM-artifact-uploads-remotely-not-locally-tp7581098p7581114.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to