Skip to content

Tried running docs locally from command line. Seems like VuePress version has issues? #30

@bkbonner

Description

@bkbonner

I tried using the docs/package.json as downloaded as:

{
    "name": "docs",
    "version": "1.0.0",
    "devDependencies": {
        "@types/node": "^18.11.9",
        "@vuepress/plugin-prismjs": "^2.0.0-beta.53",
        "@vuepress/plugin-shiki": "^2.0.0-beta.52",
        "vuepress": "^2.0.0-beta.53"
    },
    "scripts": {
        "dev": "vuepress dev docs",
        "build": "vuepress build docs"
    }
}

It gave an error about codec problem:

npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
npm ERR! code ETARGET
npm ERR! notarget No matching version found for vuepress-vite@2.0.0-beta.50-pre.1.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget 
npm ERR! notarget It was specified as a dependency of 'vuepress'
npm ERR! notarget 

Googling this, I upgraded to vuepress, prismjs, and shiki all to 2.0.0-beta.60, but this issue still remains:

npm ERR! notarget No matching version found for vuepress-vite@2.0.0-beta.50-pre.1.

Steps to recreate:
cd docs
npm install --cache /tmp/new-cache

Upon more searching this issue is caused by:
vuepress/core#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:

{
    "name": "docs",
    "version": "1.0.0",
    "devDependencies": {
        "@types/node": "^18.11.9",
        "@vuepress/plugin-prismjs": "2.0.0-beta.60",
        "@vuepress/plugin-shiki": "2.0.0-beta.60",
        "vuepress": "2.0.0-beta.60"
    },
    "scripts": {
        "dev": "vuepress dev docs",
        "build": "vuepress build docs"
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions