flyover / imgui-js

JavaScript bindings for Dear ImGui using Emscripten and TypeScript
https://flyover.github.io/imgui-js/example/
MIT License
951 stars 99 forks source link

"npm install" step fails #26

Open atorralb opened 4 years ago

atorralb commented 4 years ago

Hi Flyover. I'm having issues following the building steps, specially the "npm install" part. I have already run "sudo npm install -g npm@latest" to see if it might fix it. I don't know if had anything todo with me updating the pacage.json to the following ( because it was giving me errors saying that rollup version that is now in the repository is depracated ):

package.json:

{
  "name": "imgui-js",
  "version": "1.0.0",
  "description": "JavaScript bindings for Dear ImGui using Emscripten and TypeScript",
  "main": "imgui.js",
  "types": "imgui.ts",
  "scripts": {
    "build": "make build-bind-imgui && npm run build-imgui",
    "clean": "make clean-bind-imgui && npm run clean-imgui",
    "watch": "npm run watch-example",
    "start": "npm run start-example",
    "dist": "rollup -c",
    "build-imgui": "tsc",
    "watch-imgui": "tsc --watch",
    "clean-imgui": "echo TODO: clean-imgui",
    "build-example": "tsc -p example",
    "watch-example": "tsc -p example --watch",
    "clean-example": "echo TODO: clean-example",
    "start-example": "npm run start-example-html",
    "start-example-html": "echo http://localhost:8080/example/index.html && http-server -c-1 -o",
    "start-example-node": "node example/index.js",
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "Isaac Burns <isaacburns@gmail.com>",
  "license": "MIT",
  "dependencies": {
    "@types/emscripten": "^1.39.4",
    "@types/node": "^12.12.41",
    "@types/systemjs": "^0.20.7",
    "node-fetch": "^2.6.0",
    "systemjs": "^0.21.6"
  },
  "devDependencies": {
    "http-server": "^0.12.3",
    "node-fetch": "^2.6.0",
    "rollup": "2.22.2",
    "@rollup/plugin-commonjs": "13.0.2",
    "rollup-plugin-node-builtins": "^2.1.2",
    "rollup-plugin-typescript2": "^0.27.1",
    "systemjs": "^0.21.6",
    "typescript": "^3.9.3"
  }
}

error log ( npm_debug.log) npm-debug.log

node version: v8.10.0

pleaes let me know what other info you might need or help me our where I am failing.

Thank you