animotionjs / animotion

🪄 Create beautiful presentations with Svelte
https://animotion.pages.dev
MIT License
1.3k stars 38 forks source link

npx @animotion/create fails when run on windows #14

Closed Rayffer closed 11 months ago

Rayffer commented 11 months ago

I am attempting to use animotion on a windows 11 machine, when I run the npx @animotion/create command, I am prompted to install pnpm using the -g flag and yet, it still fails to install.

Find attached an example log of the output.

npm WARN config global --global, --local are deprecated. Use --location=global instead.

┌ Welcome to Animotion! │ ◇ Where should I create your project? │ (press Enter to use the current directory) │ ◇ Directory not empty. Continue? │ Yes │ ◇ Install dependencies? (requires pnpm) │ Yes │ ◓ Installing dependencies...

If I attempt to install it using npm i, I get the following error:

npm WARN config global --global, --local are deprecated. Use --location=global instead. npm WARN ERESOLVE overriding peer dependency npm WARN ERESOLVE overriding peer dependency npm WARN ERESOLVE overriding peer dependency npm ERR! Cannot read properties of null (reading 'matches')

npm ERR! A complete log of this run can be found in: npm ERR! ---User path to log file---

Rayffer commented 11 months ago

Sorry about opening this issue, was tinkering with it yesterday and today was able to fix it. It seems you need administrator permissions to run these commands