Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to run cli validator on linux #41

Open
IAmChuy opened this issue Oct 1, 2024 · 0 comments
Open

Failed to run cli validator on linux #41

IAmChuy opened this issue Oct 1, 2024 · 0 comments

Comments

@IAmChuy
Copy link

IAmChuy commented Oct 1, 2024

When trying to run the creator tools via the cli tool via a github action on ubuntu-latest I get the following error.

/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/@minecraft/creator-tools/storage/StorageUtilities.js:327
        let lastSlash = path.lastIndexOf("/", path.length - 1);
                             ^
TypeError: path.lastIndexOf is not a function
    at StorageUtilities.getFolderPath (/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/@minecraft/creator-tools/storage/StorageUtilities.js:327:30)
    at loadProjects (/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/@minecraft/creator-tools/cli/index.js:235:63)
    at /opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/@minecraft/creator-tools/cli/index.js:[19](https://github.com/ShapescapeMC/Scary-Mobs-Addon/actions/runs/11125097186/job/30912056959#step:12:20)5:11
Node.js v18.20.4

This is the command I used: npx mct validate addon -if PATH -o ./output -lv

Tested this with Node version 20.x as well, but still had the same error. It works fine locally on my windows machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant