gatsbymanor / gatsby-starter-dimension

Dimension html5Up theme
https://www.gatsbymanor.com/demo/dimension
MIT License
3 stars 0 forks source link

Install? #2

Open SeaDude opened 6 years ago

SeaDude commented 6 years ago

I am 2 hours into Gatsby here and very intrigued. That being said, i'm mad rookie. What are the install instructions for this theme?

Do I just:

Or is there more to the install piece?

Thanks

SeaDude commented 6 years ago

I'm not getting it! How do I add this theme to the default Gatsby theme that installs with gastby new project?

nodox commented 6 years ago

Here's what you have to do to get this project working for you.

1) $ git clone ... 2) $ yarn install 3) $ gatsby develop

We ware working on a better development solution to support multiple themes. Stay tuned! Thank you for you interest in this OSS project!

SeaDude commented 6 years ago

Thanks for the update:

  1. git clone https://github.com/gatsbymanor/gatsby-starter-dimension.git
  2. npm install yarn was required 2b. cd gatsby-starter-dimension
  3. gatsby develop yields:
error There was a problem loading the local develop command. Gatsby may not be installed. Perhaps you need to run "npm install"?

What am I missing here? When I run gatsby develop inside the gatsby tutorial folder, it fires up no probs.

Thanks

SeaDude commented 6 years ago
user5@system5:~/Documents/gatsby$ git clone https://github.com/gatsbymanor/gatsby-starter-dimension.git
Cloning into 'gatsby-starter-dimension'...
remote: Counting objects: 71, done.
remote: Compressing objects: 100% (56/56), done.
remote: Total 71 (delta 19), reused 62 (delta 11), pack-reused 0
Unpacking objects: 100% (71/71), done.
Checking connectivity... done.

user5@system5:~/Documents/gatsby$ yarn install
ERROR: [Errno 2] No such file or directory: 'install'

user5@system5:~/Documents/gatsby$ cd gatsby-starter-dimension/

user5@system5:~/Documents/gatsby/gatsby-starter-dimension$ yarn install
ERROR: [Errno 2] No such file or directory: 'install'

Do you see what I'm missing? Would really like to spin this up!

nodox commented 6 years ago
$ git clone https://github.com/gatsbymanor/gatsby-starter-dimension.git hello-dimension
$ cd hello-dimension
$ yarn
$ yarn run gatsby develop

Step 4 is needed if you don't already have a gatsby install globally (the reason you got a command error). Let me know if this works for you!

SeaDude commented 6 years ago

Thanks for the reply. I must be missing something here. I installed yarn yesterday using sudo apt-get install cmdtest. I'm on Ubuntu 16.04.

user5@system5:~/Documents/gatsby$ ls

total 80
drwxrwxr-x  3 user5  4096 Jul 25 20:21 .
drwxr-xr-x 36 user5  4096 Jul 21 11:02 ..
-rw-rw-r--  1 user5  2184 Jul 18 00:12 gatsbyNotes.md
-rw-rw-r--  1 user5 63894 Jul 18 00:12 gatsbyNotes.pdf
drwxrwxr-x  4 user5  4096 Jul 25 20:21 gatsby-starter-dimension

user5@system5:~/Documents/gatsby$ rm -rf gatsby-starter-dimension/

user5@system5:~/Documents/gatsby$ git clone https://github.com/gatsbymanor/gatsby-starter-dimension.git hello-dimension

Cloning into 'hello-dimension'...
remote: Counting objects: 71, done.
remote: Compressing objects: 100% (56/56), done.
remote: Total 71 (delta 19), reused 62 (delta 11), pack-reused 0
Unpacking objects: 100% (71/71), done.
Checking connectivity... done.
user5@system5:~/Documents/gatsby$ cd hello-dimension/

user5@system5:~/Documents/gatsby/hello-dimension$ yarn
ERROR: There are no scenarios; must have at least one.

user5@system5:~/Documents/gatsby/hello-dimension$ yarn run gatsby develop
ERROR: [Errno 2] No such file or directory: 'run'

user5@system5:~/Documents/gatsby/hello-dimension$ 
nodox commented 6 years ago

I'm not sure what cmdtest is used for. You can find the installation docs for yarn here.

Or simply use npm install instead i n you already have node/npm installed 😅

If this continues I'll make a Dockerfile to make it simple.

SeaDude commented 6 years ago

IDK whats going on! I had a working version of npm, haven't tweaked it at all, but getting the famous ENOENT error when trying npm install yarn.

This is why I initially installed cmdtest:

user5@system5:~/Documents/gatsby/hello-dimension$ yarn

The program 'yarn' is currently not installed. You can install it by typing:
sudo apt install cmdtest

I guess I'll try using apt to install yarn next!

SeaDude commented 6 years ago

Looks ok, no?

user5@system5:~$ nvm --version
0.33.11
user5@system5:~$ npm --version
6.2.0
user5@system5:~$ node --version
v10.6.0
user5@system5:~$ whereis nvm
nvm:
user5@system5:~$ whereis npm
npm: /home/user5/.nvm/versions/node/v10.6.0/bin/npm /usr/share/man/man1/npm.1
user5@system5:~$ whereis node
node: /home/user5/.nvm/versions/node/v10.6.0/bin/node
nodox commented 6 years ago

Looks good to me. Still not working?