Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot find module 'source-map-support' #118

Closed
Mte90 opened this issue Mar 8, 2016 · 8 comments
Closed

Error: Cannot find module 'source-map-support' #118

Mte90 opened this issue Mar 8, 2016 · 8 comments

Comments

@Mte90
Copy link

Mte90 commented Mar 8, 2016

I tried that tools and I get that errors that I've fixed in this way.
After npm install and launch npm run build I get this error on fx-runner cujojs/when#482
Fixed with this: https://github.com/yahoo/flux-examples/issues/137#issuecomment-93917057

When I try to run web-ext:

mte90:/tmp/web-ext/bin  ⑂ master +  $  ./web-ext                                                                                                                
module.js:341                                                                                                                                                   
    throw err;                                                                                                                                                  
    ^                                                                                                                                                           

Error: Cannot find module 'source-map-support'
    at Function.Module._resolveFilename (module.js:339:15)
    at Function.Module._load (module.js:290:25)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (/tmp/web-ext/dist/web-ext.js:1:63)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)

fixed with npm install source-map-support

After that fix the tools works without problem :-)

@kumar303
Copy link
Contributor

kumar303 commented Mar 8, 2016

Did you try in node 4.x? I don't think source-map-support is missing because it is not a direct dependency of web-ext. It is a dependency of babel-core -> babel-register. Thus, it seems like a bug triggered by node 5.7.0 somehow.

@kumar303
Copy link
Contributor

kumar303 commented Mar 8, 2016

Also, what exact version of node and what exact version of npm were you using? This seems more like an npm bug because it's dependency related.

@kumar303 kumar303 changed the title Few feedback Error: Cannot find module 'source-map-support' Mar 8, 2016
@Mte90
Copy link
Author

Mte90 commented Mar 8, 2016

Node is 5.7.1 and npm is 2.14.2 , I cannot install an old version of node in my system actually.

@kumar303
Copy link
Contributor

kumar303 commented Mar 8, 2016

I think you need npm greater than 3.x. If that fixes the error let me know and I'll update the readme. It is not possible to downgrade npm (bootstrapping problems) so I have had a hard time trying to track this down.

You should be able to use nvm to work in older node versions: https://github.com/creationix/nvm

@Mte90
Copy link
Author

Mte90 commented Mar 8, 2016

Ok I checked, on my system I had a very old version but now I have 3.6.0.
now work without problem, sorry for the disturb.

@Mte90 Mte90 closed this as completed Mar 8, 2016
@kumar303
Copy link
Contributor

kumar303 commented Mar 8, 2016

Thanks, I mentioned that npm 3.x is required in the README. #125

@kumar303
Copy link
Contributor

oh! This was a real import error, fixed in 56f672d

@ManuJindal
Copy link

am getting same issue after upgrading appium to 1.5.3 ? Is there any missing file in v1.5.3 as well??
my npm version is latest 4.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants