Error with nuxi init .
with pnpm
#234
Replies: 2 comments
-
UpdateThe issue keeps happening to this date. Everything went smooth, no error and the installation of deps was initiated and completed. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Apparently 3.8.2 (or any previous version) fixed it. Thanks. 💚🔥🎉 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Environment
OS: Windows 11 Home 10.0.22621 Build 22621
Node: 18.17.1
Terminal: Powershell Core 7.3.6
IDE: VSCode
I have been using
pnpm nuxi init .
inside the directory I want to create a nuxt project for, for a very long time.Now I get this error:
Then inside that same created project, I executed
pnpm nuxi init some-name
, and it then created the project and installed the deps without error.As I've have 2 issues related to node/nuxt related files (like lock files or node_modules) lying in the user profile directory, or in the root directory of my TypeScript projects, or any higher level directory from the project root, I am now in paranoid mode, so I checked if there were these files generated, the only file I found was a
.npmrc
inC:/Users/AngelHdz
. I deleted it, executedpnpm nuxi init .
insideC:/Users/AngelHdz/Documents/Programming/TypeScript/projects/nuxt-nitro-mongoose
, and got the error again.I'm very confident the issue is by using the dot
.
for the project name, and it used to work fine before the new feature of letting us select our preferred package manager:Just to confirm this is only happening with nuxt, I went and executed
pnpm create vue .
(with the dot), it then asked me if I wanted it to delete all the files, because the directory was not empty (it had the nuxt project files), I told it Yes, and then it asked me for a package name, I added one and the project was created without errors.I also can create a Nest project with
nest new .
, no errors.Beta Was this translation helpful? Give feedback.
All reactions