n5ro / aframe-physics-system

Physics system for A-Frame VR, built on CANNON.js.

Home Page:https://n5ro.github.io/aframe-physics-system/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannon.js repository not found when trying to install aframe-physics-system using npm

NVFedorov opened this issue · comments

when I try to install the aframe-physics-system using npm I'm getting the following error:

npm ERR! Error while executing:
npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t ssh://git@github.com/donmccurdy/cannon.js.git
npm ERR!
npm ERR! ERROR: Repository not found.
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128

my package.json:

{
  "name": "game-app",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@date-io/date-fns": "^1.3.13",
    "@material-ui/core": "^4.11.0",
    "@material-ui/icons": "^4.9.1",
    "@material-ui/lab": "^4.0.0-alpha.56",
    "@material-ui/pickers": "^3.2.10",
    "@microsoft/applicationinsights-web": "^2.5.8",
    "@microsoft/signalr": "^3.1.8",
    "@reduxjs/toolkit": "^1.4.0",
    "@testing-library/jest-dom": "^5.11.4",
    "@testing-library/react": "^11.0.4",
    "@testing-library/user-event": "^12.1.5",
    "aframe": "1.0.4",
    "aframe-environment-component": "2.0.0",
    "aframe-extras": "6.1.1",
    "aframe-look-at-component": "1.0.0",
    "aframe-physics-extras": "0.1.3",
    "aframe-physics-system": "4.0.1",
    "aframe-state-component": "7.1.0",
    "aframe-template-component": "3.2.1",
    "cannon-es": "^0.15.1",
    "date-fns": "^2.15.0",
    "history": "^4.10.1",
    "mock-geolocation": "^1.0.11",
    "node-sass": "^4.14.1",
    "query-string": "^6.13.1",
    "react": "^16.13.1",
    "react-dom": "^16.13.1",
    "react-redux": "^7.2.1",
    "react-router-dom": "^5.2.0",
    "react-scripts": "3.4.3",
    "redux-logger": "^3.0.6",
    "redux-thunk": "^2.3.0",
    "three": "^0.121.1"
  },
  "scripts": {
    "start": "set PORT=3000&&set SSL_CRT_FILE=.cert/server.crt&&set SSL_KEY_FILE=.cert/server.key&&set HTTPS=true&&set NODE_ENV=development&&react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }
}

We are running into the same error, it seems that that specific cannon.js repository does no longer exist:

https://github.com/donmccurdy/cannon.js

A fork is available here: https://github.com/schteppe/cannon.js not sure if that one is compatible with this project though.

Turns out this project is already using that repo. I think that the npm package version was not updated yet.

As a workaround, you can directly reference the git project by running

npm install https://github.com/n5ro/aframe-physics-system