{"action":"created","issue":{"url":"https://api.github.com/repos/Codeception/CodeceptJS/issues/443","repository_url":"https://api.github.com/repos/Codeception/CodeceptJS","labels_url":"https://api.github.com/repos/Codeception/CodeceptJS/issues/443/labels{/name}","comments_url":"https://api.github.com/repos/Codeception/CodeceptJS/issues/443/comments","events_url":"https://api.github.com/repos/Codeception/CodeceptJS/issues/443/events","html_url":"https://github.com/Codeception/CodeceptJS/issues/443","id":213030118,"number":443,"title":"Could not load helper Nightmare from module './helper/Nightmare'","user":{"login":"m1x0n","id":1465680,"avatar_url":"https://avatars0.githubusercontent.com/u/1465680?v=4","gravatar_id":"","url":"https://api.github.com/users/m1x0n","html_url":"https://github.com/m1x0n","followers_url":"https://api.github.com/users/m1x0n/followers","following_url":"https://api.github.com/users/m1x0n/following{/other_user}","gists_url":"https://api.github.com/users/m1x0n/gists{/gist_id}","starred_url":"https://api.github.com/users/m1x0n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m1x0n/subscriptions","organizations_url":"https://api.github.com/users/m1x0n/orgs","repos_url":"https://api.github.com/users/m1x0n/repos","events_url":"https://api.github.com/users/m1x0n/events{/privacy}","received_events_url":"https://api.github.com/users/m1x0n/received_events","type":"User","site_admin":false},"labels":[{"id":656246512,"url":"https://api.github.com/repos/Codeception/CodeceptJS/labels/need%20investigation","name":"need investigation","color":"bfd4f2","default":false},{"id":489115616,"url":"https://api.github.com/repos/Codeception/CodeceptJS/labels/nightmare","name":"nightmare","color":"388E3C","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-03-09T13:00:39Z","updated_at":"2017-12-01T08:45:50Z","closed_at":null,"author_association":"NONE","body":"#### What are you trying to achieve?\r\nHi @DavertMik , I'm trying to run tests with Nightmare (both nightmare and nightmare-upload have been installed globally):\r\n```bash\r\ncodeceptjs run . --steps\r\n```\r\n\r\n#### What do you get instead?\r\nGot following:\r\n```bash\r\nCould not load helper Nightmare from module './helper/Nightmare':\r\nRequired modules are not installed.\r\n\r\nRUN: [sudo] npm install -g nightmare nightmare-upload\r\n{}\r\n\r\nError: \r\n    at createHelpers (/usr/lib/node_modules/codeceptjs/lib/container.js:29:13)\r\n    at Object.create (/usr/lib/node_modules/codeceptjs/lib/container.js:102:15)\r\n    at Codecept.init (/usr/lib/node_modules/codeceptjs/lib/codecept.js:43:15)\r\n    at Command.module.exports (/usr/lib/node_modules/codeceptjs/lib/command/run.js:23:14)\r\n    at Command.listener (/usr/lib/node_modules/codeceptjs/node_modules/commander/index.js:301:8)\r\n    at emitTwo (events.js:106:13)\r\n    at Command.emit (events.js:191:7)\r\n    at Command.parseArgs (/usr/lib/node_modules/codeceptjs/node_modules/commander/index.js:615:12)\r\n    at Command.parse (/usr/lib/node_modules/codeceptjs/node_modules/commander/index.js:458:21)\r\n    at Object.<anonymous> (/usr/lib/node_modules/codeceptjs/bin/codecept.js:90:9)\r\n```\r\n\r\nMy test code is:\r\n\r\n```js\r\nFeature('Hellooworld');\r\n\r\nScenario('Login page loaded', (I) => {\r\n  I.amOnPage('/');\r\n  I.seeElement({name: 'password'});\r\n});\r\n```\r\n\r\n### Details\r\n\r\n* CodeceptJS version: \r\n* NodeJS Version:\r\n* Operating System:\r\n* Protractor || WebDriverIO || Nightmare version (if related)\r\n* Configuration file:\r\n\r\n```json\r\n{\r\n  \"tests\": \"./tests/e2e/*_test.js\",\r\n  \"timeout\": 20000,\r\n  \"output\": \"./tests/e2e/output\",\r\n  \"helpers\": {\r\n    \"Nightmare\": {\r\n      \"url\": \"http://localhost:3000\",\r\n      \"show\": false \r\n    }\r\n  },\r\n  \"include\": {},\r\n  \"bootstrap\": false,\r\n  \"mocha\": {},\r\n  \"name\": \"ui\"\r\n}\r\n```\r\n\r\nAny thoughts about it?\r\nThanks\r\n"},"comment":{"url":"https://api.github.com/repos/Codeception/CodeceptJS/issues/comments/348436745","html_url":"https://github.com/Codeception/CodeceptJS/issues/443#issuecomment-348436745","issue_url":"https://api.github.com/repos/Codeception/CodeceptJS/issues/443","id":348436745,"user":{"login":"Nekronek0","id":13585444,"avatar_url":"https://avatars3.githubusercontent.com/u/13585444?v=4","gravatar_id":"","url":"https://api.github.com/users/Nekronek0","html_url":"https://github.com/Nekronek0","followers_url":"https://api.github.com/users/Nekronek0/followers","following_url":"https://api.github.com/users/Nekronek0/following{/other_user}","gists_url":"https://api.github.com/users/Nekronek0/gists{/gist_id}","starred_url":"https://api.github.com/users/Nekronek0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nekronek0/subscriptions","organizations_url":"https://api.github.com/users/Nekronek0/orgs","repos_url":"https://api.github.com/users/Nekronek0/repos","events_url":"https://api.github.com/users/Nekronek0/events{/privacy}","received_events_url":"https://api.github.com/users/Nekronek0/received_events","type":"User","site_admin":false},"created_at":"2017-12-01T08:45:50Z","updated_at":"2017-12-01T08:45:50Z","author_association":"NONE","body":"I had the same issue (Could not find helper Nightmare). It turned out I ran `node_modules/codeceptjs` instead of `node_modules/codeceptjs-nightmare`"}}
{"actor":{"display_login":"Nekronek0"}}