0

I have a package node , I want to install it by usinge this commande :

./configure --prefix=/path/NODEJS/node_installation && make && make install

This will output the following error :

 File "./configure", line 16, in <module>
from gyp.common import GetFlavor
File "./tools/gyp/pylib/gyp/__init__.py", line 8, in <module>
import gyp.input
File "./tools/gyp/pylib/gyp/input.py", line 873
except ImportError as e:

Helps appreciated.

Regards

1 Answer 1

1

Try this:

sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs

See, if that helps.

Sign up to request clarification or add additional context in comments.

1 Comment

the problem was the version of python : NODEJS needs python 2.6 or 2.7 , , and me I had 2.5 . thank you @Dave

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.