create-solana-dapp icon indicating copy to clipboard operation
create-solana-dapp copied to clipboard

no folders get added

Open thekesslereffect opened this issue 10 months ago • 9 comments

image 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.

thekesslereffect avatar Apr 28 '24 05:04 thekesslereffect

Could you post the full output from the terminal that you get after running it? Also could you share your Node and NPM version?

beeman avatar Apr 28 '24 13:04 beeman

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

thekesslereffect avatar Apr 28 '24 21:04 thekesslereffect

Can you give it a try using WSL?

beeman avatar Apr 28 '24 23:04 beeman

ah that was the issue. I just tried it on my Macbook and it installs.

thekesslereffect avatar Apr 29 '24 01:04 thekesslereffect

Perfect, good to hear that. I will see if we can add instructions or detection for this.

beeman avatar Apr 29 '24 11:04 beeman

Same problem after installing WSL and running in WSL :/

ow1337 avatar May 02 '24 01:05 ow1337

@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.

beeman avatar May 09 '24 12:05 beeman

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

m4thfr34k avatar May 31 '24 00:05 m4thfr34k

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 :)

iamselimj avatar Aug 17 '24 16:08 iamselimj

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.

beeman avatar Oct 08 '24 14:10 beeman