HuddleEng / PhantomFlow

Describe and visualise user flows through tests with PhantomJS
MIT License
682 stars 60 forks source link

Not working with npm@3 #37

Closed unional closed 8 years ago

unional commented 9 years ago

Because npm@3 dependencies are flat.

module.js:338
    throw err;
          ^
Error: Cannot find module 'E:\hwong\codes\p4\main\src\mgmt\ui\phantomcss\node_modules\phantomflow\node_modules\phantomcss\node_modules\phantomjs'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at getCasperPath (E:\hwong\codes\p4\main\src\mgmt\ui\phantomcss\node_modules\phantomflow\phantomflow.js:596:18)
    at Object.module.exports.init (E:\hwong\codes\p4\main\src\mgmt\ui\phantomcss\node_modules\phantomflow\phantomflow.js
:35:19)
    at Object.<anonymous> (E:\hwong\codes\p4\main\src\mgmt\ui\phantomcss\test\test.js:25:35)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)