Hi,

I have a npm remote registry set in artifactory with anonymous users have
"Read" permission and admin users have "Depoly", "Annotate" and "Read"
permission. 

After the admin user do a npm install, npm packages are deployed to my npm
registry. But when the anonymous user try to install the package that is
already cached in my npm registry, artifactory run into:

[ERROR] (o.a.a.n.r.NpmRemoteRepoHandler:289) - Error occurred while parsing
the response of a remote npm JSON query on 'http://registry.npmjs.org': User
anonymous is not permitted to deploy '.npm/gulp-filter/package.json' into
'npmjs-cache:.npm/gulp-filter/package.json'.

This error will be off if the admin user do a npm update, but it will appear
again after a while (usually a day or two). I thought maybe npm tries
deploying to artifactory when it finds an update to the package, so I tried
"npm install <package>@<version number>" but got same error.

Why does anonymous user need deploy permission to read a package that has
already been cached in registry? I have read about this thread:
http://forums.jfrog.org/User-anonymous-is-not-permitted-to-deploy-into-repo1-cache-td3832350.html
I understand deploy permission is required when a package is not cached, but
this doesn't explain my issue. 

Thank you!



--
View this message in context: 
http://forums.jfrog.org/User-anonymous-is-not-permitted-to-deploy-package-json-tp7580313.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to