Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Can't run devDbUp, missing script #569

Closed
antmikinka opened this issue Jun 26, 2020 · 7 comments
Closed

Can't run devDbUp, missing script #569

antmikinka opened this issue Jun 26, 2020 · 7 comments
Labels
Question Further information is requested Windows 10 Issues related to non-UNIX OS

Comments

@antmikinka
Copy link

Expected Behavior

Install Docker and clone repository
Install gitBash, Node.js
run devDbUp
Start working

Actual Behavior

Installed Docker, Node.js, and Git Bash.
Try npm run devDbUp
Says missing "script"

Context

This issue has pervented me from starting to worrk and develop.
I had as my first issue not having my SSH keys connected to github I fixed that then I had to create a package.json file in my users. After I did that my new issue was that I could not run "npm run devDbUp" or "npm run devEnvUp".

Steps to Reproduce

  1. Install Git Bash and Node.js
  2. run: npm install
  3. run: npm install https://github.com/payid-org/payid
  4. open powershell and run: npm run devEnvUp

Environment

  • Node version: 12.18.1
  • NPM version: 6.14.5
  • Operating System and version: Windows 10 Pro, 19041.329
  • PayID server version: n/a
  • PayID Version header (if applicable): n/a

Screenshots

image

@0xCLARITY
Copy link
Collaborator

Hey @antmikinka , can you run npm run devEnvUp from the payid directory (where you cloned the git repository to)?

@antmikinka
Copy link
Author

Yup that worked! Thank you.
2020-06-26 (3)

@antmikinka
Copy link
Author

antmikinka commented Jun 26, 2020

While running npm run devEnvUp you can see it created a PayID, is that so? I am following the steps on Getting Stared | PayID Developer (payid.org). I follow the guide to create a PayID then it comes up with this. Am I supposed to put in my own information in the double quotes or just copy and paste into powershell? @hbergren
2020-06-26 (4)
2020-06-26 (5)

@0xCLARITY
Copy link
Collaborator

While running npm run devEnvUp you can see it created a PayID, is that so?

Hi @antmikinka , it just created the payid server Docker image or container. I admit that's confusing, so I wrote a PR to rename that Docker service.

Am I supposed to put in my own information in the double quotes or just copy and paste into powershell?

You can do either, but it looks like the UNIX-style curl command isn't the correct syntax for Powershell. You can either adapt the script to be Powershell-compliant, or you could use the Windows Subsystem for Linux to get a UNIX-compatible terminal.

@antmikinka
Copy link
Author

@hbergren Oh ok thank you. What UNIX-compatible terminal do you use? Sorry I'm a bit of a newbie. I got this error about connection being refused after I copy and paste. Would this have to do with me newly installing Ubuntu (like starting from cloning the repository), would I have to recreate a SSH and add it to GitHub to not have the connection be refused? I tried Ubuntu and GitBash (trying to troubleshoot the issue).
2020-06-29
2020-06-29 (1)

@antmikinka antmikinka reopened this Jun 30, 2020
@0xCLARITY
Copy link
Collaborator

Thanks for including the screenshots! That makes debugging way easier.

@hbergren Oh ok thank you. What UNIX-compatible terminal do you use?

Hey @antmikinka , I fully switched over to Macbooks so I haven't used Windows 10 in a bit. I got tired of fighting the OS when I had a programming project 😄

From Googling around it looks like your problem might be the Windows PATH interfering with the WSL PATH. They discuss how to fix that on this StackOverflow.

If you haven't already, you might also want to walk through the official Microsoft guide for setting up Node.js development on WSL.

Let me know if either of those resources help you fix your problem. If not, I'm happy to look into more potential solutions.

@0xCLARITY 0xCLARITY added Question Further information is requested Windows 10 Issues related to non-UNIX OS labels Jun 30, 2020
@0xCLARITY
Copy link
Collaborator

Hey @antmikinka , were you able to figure this out?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Question Further information is requested Windows 10 Issues related to non-UNIX OS
Projects
None yet
Development

No branches or pull requests

2 participants