{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/41770","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/41770/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/41770/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/41770/events","html_url":"https://github.com/saltstack/salt/issues/41770","id":236246186,"number":41770,"title":"NPM v5 incompatible with salt.modules.cache_list","user":{"login":"Ch3LL","id":6886822,"avatar_url":"https://avatars3.githubusercontent.com/u/6886822?v=4","gravatar_id":"","url":"https://api.github.com/users/Ch3LL","html_url":"https://github.com/Ch3LL","followers_url":"https://api.github.com/users/Ch3LL/followers","following_url":"https://api.github.com/users/Ch3LL/following{/other_user}","gists_url":"https://api.github.com/users/Ch3LL/gists{/gist_id}","starred_url":"https://api.github.com/users/Ch3LL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ch3LL/subscriptions","organizations_url":"https://api.github.com/users/Ch3LL/orgs","repos_url":"https://api.github.com/users/Ch3LL/repos","events_url":"https://api.github.com/users/Ch3LL/events{/privacy}","received_events_url":"https://api.github.com/users/Ch3LL/received_events","type":"User","site_admin":false},"labels":[{"id":41387723,"url":"https://api.github.com/repos/saltstack/salt/labels/Bug","name":"Bug","color":"e11d21","default":false},{"id":41387237,"url":"https://api.github.com/repos/saltstack/salt/labels/Execution%20Module","name":"Execution Module","color":"006b75","default":false},{"id":41387994,"url":"https://api.github.com/repos/saltstack/salt/labels/Medium%20Severity","name":"Medium Severity","color":"fad8c7","default":false},{"id":194766324,"url":"https://api.github.com/repos/saltstack/salt/labels/P4","name":"P4","color":"031a39","default":false},{"id":220527153,"url":"https://api.github.com/repos/saltstack/salt/labels/RIoT","name":"RIoT","color":"fef2c0","default":false},{"id":80644929,"url":"https://api.github.com/repos/saltstack/salt/labels/Upstream%20Bug","name":"Upstream Bug","color":"bfe5bf","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/13","html_url":"https://github.com/saltstack/salt/milestone/13","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/13/labels","id":9265,"number":13,"title":"Approved","description":"All issues that are ready to be worked on, both bugs and features.","creator":{"login":"thatch45","id":507599,"avatar_url":"https://avatars0.githubusercontent.com/u/507599?v=4","gravatar_id":"","url":"https://api.github.com/users/thatch45","html_url":"https://github.com/thatch45","followers_url":"https://api.github.com/users/thatch45/followers","following_url":"https://api.github.com/users/thatch45/following{/other_user}","gists_url":"https://api.github.com/users/thatch45/gists{/gist_id}","starred_url":"https://api.github.com/users/thatch45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thatch45/subscriptions","organizations_url":"https://api.github.com/users/thatch45/orgs","repos_url":"https://api.github.com/users/thatch45/repos","events_url":"https://api.github.com/users/thatch45/events{/privacy}","received_events_url":"https://api.github.com/users/thatch45/received_events","type":"User","site_admin":false},"open_issues":3476,"closed_issues":4996,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2017-08-10T15:57:32Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2017-06-15T16:26:10Z","updated_at":"2017-08-10T20:19:07Z","closed_at":null,"body":"### Description of Issue/Question\r\nAccording to [this](https://github.com/npm/npm/pull/15666#issuecomment-305202975) npm issue `npm cache ls` was removed in v5.0, which means our current `salt.modules.cache_list` does not work in salt and it does not look like there is an alternative to list cache in npm.\r\n\r\nIf you run the following: `salt-call --local state.single npm.cache_cleaned force=True name=None ` you will see this error:\r\n\r\n```\r\nlocal:\r\n----------\r\n          ID: None\r\n    Function: npm.cache_cleaned\r\n      Result: False\r\n     Comment: Error looking up cached packages: npm ERR! Usage: npm cache add <tarball file>\r\n              npm ERR! npm cache add <folder>\r\n              npm ERR! npm cache add <tarball url>\r\n              npm ERR! npm cache add <git url>\r\n              npm ERR! npm cache add <name>@<version>\r\n              npm ERR! npm cache clean\r\n              npm ERR! npm cache verify\r\n     Started: 10:21:59.763936\r\n    Duration: 3298.134 ms\r\n     Changes:   \r\n```\r\nwhich is just npm's usage so the command `npm cache ls` does not exist anymore and there is not currently an alternative.\r\n\r\nfyi @dschaller\r\n\r\n\r\n### Versions Report\r\nFound this on MacOSX:\r\n\r\n```\r\njk-el-capitan-base:~ root# salt --versions-report\r\nSalt Version:\r\n           Salt: 2016.11.5-112-g36cb223\r\n \r\nDependency Versions:\r\n           cffi: Not Installed\r\n       cherrypy: unknown\r\n       dateutil: 1.5\r\n      docker-py: Not Installed\r\n          gitdb: 2.0.0\r\n      gitpython: 2.1.0\r\n          ioflo: 1.6.5\r\n         Jinja2: 2.8\r\n        libgit2: Not Installed\r\n        libnacl: Not Installed\r\n       M2Crypto: Not Installed\r\n           Mako: Not Installed\r\n   msgpack-pure: Not Installed\r\n msgpack-python: 0.4.8\r\n   mysql-python: Not Installed\r\n      pycparser: Not Installed\r\n       pycrypto: 2.6.1\r\n   pycryptodome: Not Installed\r\n         pygit2: Not Installed\r\n         Python: 2.7.10 (default, Oct 23 2015, 19:19:21)\r\n   python-gnupg: 0.3.9\r\n         PyYAML: 3.12\r\n          PyZMQ: 16.0.2\r\n           RAET: Not Installed\r\n          smmap: 2.0.1\r\n        timelib: 0.2.4\r\n        Tornado: 4.4.2\r\n            ZMQ: 4.1.6\r\n \r\nSystem Versions:\r\n           dist:   \r\n        machine: x86_64\r\n        release: 15.6.0\r\n         system: Darwin\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/321662064","html_url":"https://github.com/saltstack/salt/issues/41770#issuecomment-321662064","issue_url":"https://api.github.com/repos/saltstack/salt/issues/41770","id":321662064,"user":{"login":"gtmanfred","id":732321,"avatar_url":"https://avatars0.githubusercontent.com/u/732321?v=4","gravatar_id":"","url":"https://api.github.com/users/gtmanfred","html_url":"https://github.com/gtmanfred","followers_url":"https://api.github.com/users/gtmanfred/followers","following_url":"https://api.github.com/users/gtmanfred/following{/other_user}","gists_url":"https://api.github.com/users/gtmanfred/gists{/gist_id}","starred_url":"https://api.github.com/users/gtmanfred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtmanfred/subscriptions","organizations_url":"https://api.github.com/users/gtmanfred/orgs","repos_url":"https://api.github.com/users/gtmanfred/repos","events_url":"https://api.github.com/users/gtmanfred/events{/privacy}","received_events_url":"https://api.github.com/users/gtmanfred/received_events","type":"User","site_admin":false},"created_at":"2017-08-10T20:19:07Z","updated_at":"2017-08-10T20:19:07Z","body":"Once this is resolved, this can be reverted.\r\n\r\nhttps://github.com/saltstack/salt/pull/42856"}}
{"actor":{"display_login":"gtmanfred"}}