Cannot find module '../build/safe-execute'
See original GitHub issueHi, I’m a newbie to preact. I want to debug preact, but when I run npm run test
got the following error:
13 02 2017 11:02:38.084:ERROR [plugin]: Error during loading "F:\workspace\preact\node_modules/karma-sauce-launcher" plugin:
Cannot find module '../build/safe-execute'
START:
13 02 2017 11:02:44.304:INFO [karma]: Karma v1.4.1 server started at http://0.0.0.0:9876/
13 02 2017 11:02:44.305:INFO [launcher]: Launching browser PhantomJS with concurrency 2
13 02 2017 11:02:44.306:ERROR [karma]: Found 1 load error
nodejs: v6.9.5-x64
Can anyone know how to solve this? Thanks.
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Issues - GitHub
Hi, I want to debug preact, but when I run npm run test got the following error: 13 02 2017 11:02:38.084:ERROR [plugin]: Error...
Read more >How do I resolve "Cannot find module" error using Node.js?
it seems like when i installed it globally the npm/node-modules folder was empty and i was trying to use ng new project-name it...
Read more >Cacher is the code snippet organizer for pro developers
Fix for Karma Cannot find module '../build/safe-execute' error - @benjamincharity shared this Cacher snippet. Cacher is the code snippet ...
Read more >cannot find module 'child_process' or its corresponding type ...
You can do this by running npm install --save-dev @types/node in your project directory. This will install the types for the child_process module,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It looks like this can occur from a corrupted cache of the
wd
module. It’s supposed to create../build/safe-execute
here: https://github.com/admc/wd/blob/b1463ce/scripts/build-browser-scripts.jsForcing a clean install of this module should resolve the issue. On travis I was able to resolve it by deleting my caches.
Thanks @voltrevo - that confirms it’s not related to Preact. Good to have your explanation around for those finding this via Google or if we run into the issue on Travis.