Search code examples
node.jsubuntunpmaframe

aframe error during installation with npm


I'm trying to install aframe and aframe-inspector. I tried every way for local development because I need to to something that requires the editing of the inspector. But every time I try to install it, it fails during npm install or npm start. For example, when I try to install aframe, it gives me error in npm install. For inspector during start. I didn't find help since I seem the only one that has this kind of errors. How can I solve? I just need to edit aframe-inspector and I don't know hot to do it without installing it and I don't know how to proceed even after but this seems the right way. I tried in ubuntu and in windows 10. Thx for future answers!

EDIT 1: I removed the part about the windows error. I don't need to make it work on windows, I don't want you to focus on that. I've got the last version of node.js. Here you can see what kind of error I have when I try to install it. Errors photos on drive

Here you can ses the log that I had when trying to install aframe with npm: Errors log while installing aframe

EDIT 2: I tried the same things on 2 different PCs in ubuntu. I also tried this aframe boilerplate . It didn't work either.

EDIT 3: I solved half of the problem. AFrame library now is working on local in my pc but the inspector isn't working. I solved the problem by updating node.js. I thought that was the last version because when I did sudo apt-get install nodejs my shell answered me that I had last version of node.js but it wasn't true. Then I had a doubt about it and I found on internet that I had to install NVM and then I had to install node with it. So now I just need to make the inspector work. I couldn't find a way for now (the error of the inspector is still the same).

EDIT 4: I also tried in windows and it didn't work. I got 3 errors in 3 different situations:
- trying git clone error with git clone ; Then, after npm install: - trying npm start without doing anything error on npm start
- trying after git init in the inspector after git init


Solution

  • I solved the problem using windows but I think to understand what was the problem.
    First of all, I couldn't clone the project so I downloaded it directly from the site. I think that in that way it couldn't work.
    I couldn't clone the project because I'm a beginner with the use of git I think. I think that there are some problems with public keys/SHA that I don't know how to solve. For this reason, in Windows, I downloaded Github Desktop and I made it handle for me. In that way, it worked. I don't have the direct solution for ubuntu but I think that this can help someone.