create-solana-dapp
create-solana-dapp copied to clipboard
no folders get added
any idea what to do? This is the only thing that shows up when I run: npx create-solana-dapp@latest
I tried npm i and it still doesnt populate with folders.
Could you post the full output from the terminal that you get after running it? Also could you share your Node and NPM version?
PS C:\Users\PootDev\Documents\GitHub\solana> npm --version
10.6.0
PS C:\Users\PootDev\Documents\GitHub\solana> node --version
v20.12.2
PS C:\Users\PootDev\Documents\GitHub\solana> npx create-solana-dapp@latest
> npx
> create-solana-dapp
┌ create-solana-dapp 2.2.0
│
◇ Enter project name
│ poot-solana-dapp
│
◇ Select a preset
│ Next.js
│
◇ Select a UI library
│ Tailwind
│
◇ Select an Anchor template
│ Anchor Counter program with tests
│
◆ Anchor program name: poot-solana-dapp
│
◇ Successfully created workspace with npm.
Nothing showed up so I tried:
PS C:\Users\PootDev\Documents\GitHub\solana> cd poot-solana-dapp
PS C:\Users\PootDev\Documents\GitHub\solana\poot-solana-dapp> npm i
added 20 packages, removed 5 packages, changed 4 packages, and audited 1008 packages in 12s
138 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
But still nothing
Can you give it a try using WSL?
ah that was the issue. I just tried it on my Macbook and it installs.
Perfect, good to hear that. I will see if we can add instructions or detection for this.
Same problem after installing WSL and running in WSL :/
@thekesslereffect @ow1337 I just published a new version of the CLI, could you test to see if this changes how it works?
Instructions can be found in my announcement tweet.
I ran into a similar issue. Ran the setup command and essentially got the nx workspace with nothing else.
npx create-solana-dapp@latest
Had to run the following, aftering cd'ing into the project folder:
npx nx@latest init
npx nx generate preset preset-next
That solved my issue. Then it was just a quick 'npx nx dev' and I was up and running.
OS: Windows 10 Pro
I ran into a similar issue. Ran the setup command and essentially got the nx workspace with nothing else.
npx create-solana-dapp@latest
Had to run the following, aftering cd'ing into the project folder:
npx nx@latest init npx nx generate preset preset-next
That solved my issue. Then it was just a quick 'npx nx dev' and I was up and running.
OS: Windows 10 Pro
Thanks man! This works for me :)
Gm! Yesterday we announced a new version of this cli which should fix this issue. Please give it a spin and comment here if the issue persists so I can investigate.