emersonbottero / vitepress-plugin-search

Provide local search to your documentation site.
MIT License
238 stars 30 forks source link

should include package manager #76

Closed userquin closed 1 year ago

userquin commented 1 year ago

I've pnpm 8 installed on my local, since you don't have packageManager entry in package.json the lock file is changed once installing dependencies, can you share pnpm version you're using (it seems pnpm 7)?

emersonbottero commented 1 year ago

I don't get it. You can use any package manager to install this plugin.

userquin commented 1 year ago

@emersonbottero I forked this repo, the package.json file has no "packageManager" entry, and so on my local, running pnpm install change the lock file. If I send a PR...

emersonbottero commented 1 year ago

Can't you use npm instead?

userquin commented 1 year ago

@emersonbottero

To fix it here, it is quite simple, run pnpm --version on your local, and then add "packageManager": "pnpm@<version>" entry.

Here some examples using pnpm 7 and 8: