AnsweredAssumed Answered

node-gyp

Question asked by Niklas Molin on Jan 29, 2014
Latest reply on Feb 5, 2015 by Steve Scheidecker

Hi.

 

I wonder if someone has used node-gyp in the image generated by Yocto?

When I try to use this, then I get following error:

 

Traceback (most recent call last):

  File "/usr/local/lib/node_modules/node-gyp/gyp/gyp_main.py", line 15, in <module>

    import gyp

  File "/usr/local/lib/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 8, in <module>

    import gyp.input

  File "/usr/local/lib/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 5, in <module>

    from compiler.ast import Const

ImportError: No module named compiler.ast

 

I also get the same error if I try to use this in cross compiling environment.

 

Thanks,

Niklas

Outcomes