Mojang / minecraft-creator-tools

A set of tools for creating content and add-ons for Minecraft Bedrock Edition.
Other
70 stars 3 forks source link

Failed to build #29

Open tryashtar opened 3 months ago

tryashtar commented 3 months ago

Upon following the steps in the readme to build it, I received this error:

> mctools@0.2.9 process
> npx ./toolbuild/jsn/ validate --force -ot noreports -i ./public/res/latest/van/ -o ./public/data && gulp copyjsnodedata

node:fs:1372
  const result = binding.mkdir(
                         ^

Error: EACCES: permission denied, mkdir '/home/[me]\AppData\Local\mctools_server\'
    at Object.mkdirSync (node:fs:1372:26)
    at new LocalEnvironment (/d/Minecraft/Bedrock Storage/minecraft-creator-tools/app/toolbuild/jsn/local/LocalEnvironment.js:232:16)
    at Object.<anonymous> (/d/Minecraft/Bedrock Storage/minecraft-creator-tools/app/toolbuild/jsn/cli/index.js:103:12)
    at Module._compile (node:internal/modules/cjs/loader:1358:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
    at Module.load (node:internal/modules/cjs/loader:1208:32)
    at Module._load (node:internal/modules/cjs/loader:1024:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
    at node:internal/main/run_main_module:28:49 {
  errno: -13,
  code: 'EACCES',
  syscall: 'mkdir',
  path: '/home/[me]\\AppData\\Local\\mctools_server\\'
}
mammerla commented 3 months ago

I haven't tested building this on non-Windows, and there could be some issues there; sorry, I'll make that a bit more clear.

mammerla commented 2 months ago

I added some fixes for some things on Linux - if you could maybe try again that might be useful. Though that said, it will still look to create a (temporary) work folder underneath a home folder (just.. not with a Windows path) .. so you may still see permission issues?

tryashtar commented 2 months ago

Thank you for the update! It seemed to get further this time, but did still fail eventually:

> mctools-app@0.2.9 process
> npx ./toolbuild/jsn/ validate --force -ot noreports -i ./public/res/latest/van/ -o ./public/data && gulp copyjsnodedata

sh: line 1: /home/[me]/.npm/_npx/bf6fd44cde201ed5/node_modules/.bin/mct: Permission denied