Open bkbonner opened 1 year ago
Well, it installs OK, but it doesn't run. :(
$ npm run dev
> docs@1.0.0 dev /Users/bkbonner/Downloads/honey-main/docs
> vuepress dev docs
/Users/bkbonner/Downloads/honey-main/docs/node_modules/vuepress/bin/vuepress.js:3
import 'vuepress-vite/bin'
^^^^^^^^^^^^^^^^^^^
SyntaxError: Unexpected string
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! docs@1.0.0 dev: `vuepress dev docs`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the docs@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
I tried using the docs/package.json as downloaded as:
It gave an error about codec problem:
Googling this, I upgraded to vuepress, prismjs, and shiki all to 2.0.0-beta.60, but this issue still remains:
Steps to recreate:
cd docs
npm install --cache /tmp/new-cache
Upon more searching this issue is caused by: https://github.com/vuepress/vuepress-next/issues/1195
Basically they updated to a newer version of a dependency with a naming that causes the ^ and ~ to fail.
I'd suggest just switching those out to: