Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to start a new system #11

Open
Evanion opened this issue Nov 3, 2017 · 0 comments
Open

Unable to start a new system #11

Evanion opened this issue Nov 3, 2017 · 0 comments

Comments

@Evanion
Copy link

Evanion commented Nov 3, 2017

I'm trying to get started with microsvc
I have installed hub and gitslave, as well as made sure I'm authenticated with GitHub in hub.
Node: v8.9.0
NPM: 5.5.1

# DEBUG=* microsvc create system saint-next
creating new system 'saint-next'...
  exec running 'git init' in cwd /Users/mikpet/Project/saint-next +0ms
Initialized empty Git repository in /Users/mikpet/Project/saint-next/.git/

  exec running 'hub create saint-next' in cwd /Users/mikpet/Project/saint-next +17ms
Updating origin

created repository: Evanion/saint-next

finished creating new system 'saint-next'...
type 'cd ./saint-next && npm i && make run' to initialize and run

This creates a folder with Makefile, yml file, and readme file. I noticed that the command referenced in the end of the output calls NPM .. but I don't see any package.json in the folder. I figure it might be some clever stuff, so I press on:

# cd ./saint-next && npm i && make run
npm WARN saveError ENOENT: no such file or directory, open '/Users/mikpet/Project/saint-next/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/Users/mikpet/Project/saint-next/package.json'
npm WARN saint-next No description
npm WARN saint-next No repository field.
npm WARN saint-next No README data
npm WARN saint-next No license field.

up to date in 0.061s
/Library/Developer/CommandLineTools/usr/bin/make run-only
mkdir -p ~/.tmuxinator
cp ./tmuxinator.all.yml ~/.tmuxinator/saint-next.yml
NO_WEB= mux saint-next
/bin/sh: mux: command not found
make[1]: *** [run-only] Error 127
make: *** [run] Error 2

Well I might as well run the last step as well:

# microsvc create service client-gateway
creating new microsvc 'client-gateway'...
Initialized empty Git repository in /Users/mikpet/Project/saint-next/client-gateway/.git/

Evanion/client-gateway already exists on github.com

origin	git@github.com:Evanion/saint-next.git (fetch)
origin	git@github.com:Evanion/saint-next.git (push)

set remote origin: Evanion/client-gateway

[master (root-commit) de58c26] initial commit
 13 files changed, 307 insertions(+)
 create mode 100644 .npmignore
 create mode 100644 Makefile
 create mode 100644 README.md
 create mode 100644 api.js
 create mode 100755 bin/client-gateway-svc
 create mode 100644 config.json
 create mode 100644 lib/bus.js
 create mode 100644 lib/handlers/listen.js
 create mode 100644 lib/handlers/subscribe.js
 create mode 100644 package.json
 create mode 100644 routes/index.js
 create mode 100644 service.js
 create mode 100644 test/index.js

Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hosts.

ERROR: Repository not found.

fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Cloning into 'client-gateway'...

warning: You appear to have cloned an empty repository.

error: pathspec '/Users/mikpet/Project/saint-next/.gitslave' did not match any file(s) known to git.

finished creating new microsvc 'client-gateway'...
type 'cd ./client-gateway && npm i && make run' to initialize and run

And lets run the last command just to be complete:

# cd ./client-gateway && npm i && make run
npm WARN saveError ENOENT: no such file or directory, open '/Users/mikpet/Project/saint-next/client-gateway/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/Users/mikpet/Project/saint-next/client-gateway/package.json'
npm WARN client-gateway No description
npm WARN client-gateway No repository field.
npm WARN client-gateway No README data
npm WARN client-gateway No license field.

up to date in 0.068s
make: *** No rule to make target `run'.  Stop.

There seems to be something wrong when I run the first command that causes all the other commands to fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant