Error pnpm install
Clone and then try to install all the dependencies and these errors appear: `@F4k3r22 ➜ /workspaces/codespaces-blank/cmd_theme (main) $ pnpm install Debugger attached. Lockfile is up to date, resolution step is skipped Packages: +524 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ERR_PNPM_FETCH_404 GET https://registry.npmjs.org/astro-compress/-/astro-compress-1.1.28.tgz: Not Found - 404
No authorization header was set for the request. Progress: resolved 524, reused 459, downloaded 0, added 2 Downloading [email protected]: 1.37 kB/11.62 MB Waiting for the debugger to disconnect... @F4k3r22 ➜ /workspaces/codespaces-blank/cmd_theme (main) $ pnpm run dev Debugger attached.
[email protected] dev /workspaces/codespaces-blank/cmd_theme astro dev
sh: 1: astro: not found ELIFECYCLE Command failed. Waiting for the debugger to disconnect...`
change your package.json to this!
{
"name": "cmd_theme",
"author": "Sébastien Gordano",
"description": "A starter theme for Astro.",
"version": "1.0.0",
"scripts": {
"dev": "astro dev",
"check": "astro check && tsc --noEmit",
"build": "astro check && tsc --noEmit && astro build",
"preview": "astro preview",
"astro": "astro",
"build:prev": "astro build && astro preview",
"format": "prettier -w --plugin-search-dir=. ."
},
"devDependencies": {
"@astrojs/image": "^0.13.1",
"@astrojs/prefetch": "^0.1.2",
"@astrojs/rss": "^2.4.3",
"@astrojs/sitemap": "^1.3.3",
"astro": "^2.7.2",
"astro-compress": "2.3.5",
"astro-icon": "^0.8.1",
"autoprefixer": "^10.4.14",
"prettier": "^2.8.8",
"prettier-plugin-astro": "^0.8.1",
"sass": "^1.63.6",
"sharp": "0.33.5",
"simple-astro-seo": "^0.1.3",
"svgo": "2.8",
"typescript": "^4.9.5",
"vite": "^4.3.9"
},
"browserslist": [
"defaults"
]
}
Oh! I did not see this earlier!
Please merge the changed from #6 or apply your own fix. It would be better than people stumbling on this and not knowing what to do!
I tried to pull the required version of the dependency, build it, and link it locally, and it did not work due to some other issue. Hence it is worth updating the dependencies.
Furthermore, it might be a good idea to advise people on what version of node to use. I suppose that this project uses node 18. This can be done either via a .nvmrc or a .tool-versions file (the latter being the one used with the asdf tool).