-
Notifications
You must be signed in to change notification settings - Fork 13
Unable to find module 'protractor-timeline-plugin' without global installation #10
Comments
Have you |
Same problem here. I have npm installed it, but I still get
protractor-timeline-plugin 0.2.0 |
This may be an issue with npm/require not resolving things as I'd expect. If you change your config to: plugins: [{
inline: require('protractor-timeline-plugin'),
outdir: 'timelines',
outputHtmlFileName: 'results.html'
}] does that solve the problem? |
This does indeed fix the problem. I can run a test now and get a HTML report in the timelines directory. |
What's your npm version? |
npm version 4.0.5 |
Ok, so basically what's going on here is that both |
Wait, are you running a version of Protractor which was globally installed or locally installed? |
@sjelin protractor is installed globally. |
When I run protractor with this plugin (or any of the first party plugins in my configuration file), I get an error saying:
E/launcher - Error: Cannot find module 'protractor-timeline-plugin'
My config file plugins section,
It seems to work however if I install the plugin globally. Unfortunately installing globally isn't an option for me. Has this issue been seen previously/are there any known workarounds? Let me know if you need any more info or how I can help to debug it
Protractor version: "^4.0.10"
The text was updated successfully, but these errors were encountered: