indiekit icon indicating copy to clipboard operation
indiekit copied to clipboard

docs: add npm install to getting started instructions

Open sentience opened this issue 3 years ago • 7 comments

sentience avatar Dec 26 '22 09:12 sentience

Hi @sentience; npm install shouldn’t be needed; using npm create indiekit [directory] will install the required dependencies as part of that initiation process (you will be asked to download and install create-indiekit if I remember correctly).

Did you try this, or did it not work?

paulrobertlloyd avatar Dec 26 '22 11:12 paulrobertlloyd

Doesn't work for me. This is what I get with a fresh clone:

❯ npm create indiekit indiekit sh: create-indiekit: command not found npm ERR! code 127 npm ERR! path /Users/kyank/code/indiekit npm ERR! command failed npm ERR! command sh -c -- create-indiekit indiekit

npm ERR! A complete log of this run can be found in: npm ERR! /Users/kyank/.npm/_logs/2022-12-26T11_26_16_970Z-debug-0.log

sentience avatar Dec 26 '22 11:12 sentience

That's odd. What versions of npm and node are installed?

paulrobertlloyd avatar Dec 26 '22 13:12 paulrobertlloyd

❯ node --version v18.12.1

❯ npm --version 8.19.2

sentience avatar Dec 26 '22 22:12 sentience

I had to npm install prior to being able to do npm create indiekit (directory)

rmdes avatar Jun 20 '23 10:06 rmdes

Interesting. I'm not sure that's how npm initialisation packages are meant to work (requiring npm install beforehand) but maybe I'm missing something. Will investigate!

paulrobertlloyd avatar Jun 20 '23 11:06 paulrobertlloyd

Am finding this issue hard to replicate.

When I type the following:

npm create indiekit my-project

I get the following:

Need to install the following packages:
  [email protected]
Ok to proceed? (y) 

That package is installed, before the question flow starts. After answering the questions, the directory and files are created. I’ve deleted all npm caches and reinstalled Node.

Note, this command should be run independent of cloning any repo or any other setup. What steps did you follow? How did you install Node? What platform are you using? This one has me stumped at the moment…

paulrobertlloyd avatar Jun 25 '23 13:06 paulrobertlloyd