payload: {"action":"created","issue":{"url":"https://api.github.com/repos/snyk/snyk/issues/300","repository_url":"https://api.github.com/repos/snyk/snyk","labels_url":"https://api.github.com/repos/snyk/snyk/issues/300/labels{/name}","comments_url":"https://api.github.com/repos/snyk/snyk/issues/300/comments","events_url":"https://api.github.com/repos/snyk/snyk/issues/300/events","html_url":"https://github.com/snyk/snyk/issues/300","id":388625941,"node_id":"MDU6SXNzdWUzODg2MjU5NDE=","number":300,"title":"Failed when using `npm ci`","user":{"login":"Berkmann18","id":8260834,"node_id":"MDQ6VXNlcjgyNjA4MzQ=","avatar_url":"https://avatars0.githubusercontent.com/u/8260834?v=4","gravatar_id":"","url":"https://api.github.com/users/Berkmann18","html_url":"https://github.com/Berkmann18","followers_url":"https://api.github.com/users/Berkmann18/followers","following_url":"https://api.github.com/users/Berkmann18/following{/other_user}","gists_url":"https://api.github.com/users/Berkmann18/gists{/gist_id}","starred_url":"https://api.github.com/users/Berkmann18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Berkmann18/subscriptions","organizations_url":"https://api.github.com/users/Berkmann18/orgs","repos_url":"https://api.github.com/users/Berkmann18/repos","events_url":"https://api.github.com/users/Berkmann18/events{/privacy}","received_events_url":"https://api.github.com/users/Berkmann18/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-12-07T11:59:53Z","updated_at":"2019-03-18T12:23:59Z","closed_at":null,"author_association":"NONE","body":"- `node -v`: v11.0.0 (and v6.15.1)\r\n- `npm -v`: 6.4.1 (and 5.7.1)\r\n- `snyk -v`: 1.111.1 (and 1.116.2)\r\n- Command run: `snyk protect`\r\n\r\n### Expected behaviour\r\nThe command runs smoothly like it normally does.\r\n\r\n### Actual behaviour\r\n```bash\r\nCould not detect supported target files in /home/travis/build/Berkmann18/TemplateJS/node_modules.\r\nPlease see our documentation for supported languages and target files: https://support.snyk.io/getting-started/languages-support and make sure you are in the right directory.\r\n```\r\n\r\n### Steps to reproduce\r\n```bash\r\nnpm i -g npm@5.7.1 snyk\r\nnpm ci\r\nsnyk protect\r\n```"},"comment":{"url":"https://api.github.com/repos/snyk/snyk/issues/comments/473888350","html_url":"https://github.com/snyk/snyk/issues/300#issuecomment-473888350","issue_url":"https://api.github.com/repos/snyk/snyk/issues/300","id":473888350,"node_id":"MDEyOklzc3VlQ29tbWVudDQ3Mzg4ODM1MA==","user":{"login":"leongold","id":10177299,"node_id":"MDQ6VXNlcjEwMTc3Mjk5","avatar_url":"https://avatars1.githubusercontent.com/u/10177299?v=4","gravatar_id":"","url":"https://api.github.com/users/leongold","html_url":"https://github.com/leongold","followers_url":"https://api.github.com/users/leongold/followers","following_url":"https://api.github.com/users/leongold/following{/other_user}","gists_url":"https://api.github.com/users/leongold/gists{/gist_id}","starred_url":"https://api.github.com/users/leongold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leongold/subscriptions","organizations_url":"https://api.github.com/users/leongold/orgs","repos_url":"https://api.github.com/users/leongold/repos","events_url":"https://api.github.com/users/leongold/events{/privacy}","received_events_url":"https://api.github.com/users/leongold/received_events","type":"User","site_admin":false},"created_at":"2019-03-18T12:23:59Z","updated_at":"2019-03-18T12:23:59Z","author_association":"CONTRIBUTOR","body":"Hey @Berkmann18, I've forked your repo and am running `protect` in the relevant branch (using the aforementioned versions) and everything seems fine:\r\n\r\n```\r\nLeons-MacBook-Pro:TemplateJS leongold$ snyk protect\r\nSuccessfully applied Snyk patches\r\n\r\nLeons-MacBook-Pro:TemplateJS leongold$ pwd\r\n/Users/leongold/git/TemplateJS\r\nLeons-MacBook-Pro:TemplateJS leongold$ git status\r\nOn branch npmci\r\n```\r\n\r\nHowever, I am getting a similar error to yours when I'm running `protect` inside `node_modules` (as appears in your error message above):\r\n\r\n```\r\nLeons-MacBook-Pro:TemplateJS leongold$ cd node_modules/\r\nLeons-MacBook-Pro:node_modules leongold$ snyk protect\r\nCould not detect supported target files in /Users/leongold/git/TemplateJS/node_modules.\r\nPlease see our documentation for supported languages and target files: https://support.snyk.io/getting-started/languages-support and make sure you are in the right directory.\r\n```\r\n\r\nCould you please try again outside `node_modules` and let us know if this helps?"}}
other: {"actor":{"display_login":"leongold"}}