Skip to content

Quickstart fails #1841

Closed
Closed

Description

@char-cole

Description

Following this guide: https://faustjs.org/tutorial/get-started-with-faust

I'm not able to set up an example Faust project.

Using the given terminal command, I get the error:
Could not locate the repository for "https://github.com/wpengine/faustjs/tree/main". Please check that the repository exists and try again.

I also tried these and got the same result:
npx create-next-app test-faust-next --use-npm --example https://github.com/wpengine/faustjs/tree/main/
npx create-next-app test-faust-next --use-npm --example https://github.com/wpengine/faustjs/tree/main/examples/next/faustwp-getting-started

Then I tried cloning the faustjs repo locally and running this:
npx create-next-app test-faust-next --example faustjs/examples/next/faustwp-getting-started/
and got the following error:
Could not locate an example named "faustjs/examples/next/faustwp-getting-started/"

I'm using Node version 21.7.1 on macOS Sonoma 14.1.2. Was initially behind a company VPN but disabling that had no effect.

Steps to reproduce

run

npx create-next-app \
    -e https://github.com/wpengine/faustjs/tree/main \
    --example-path examples/next/faustwp-getting-started \
    --use-npm

Additional context

No response

@faustwp/core Version

?

@faustwp/cli Version

?

FaustWP Plugin Version

?

WordPress Version

?

Additional environment details

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Activity

  1. mindctrl commented on Mar 12, 2024

    @mindctrl
    Contributor

    Could not locate the repository for "https://github.com/wpengine/faustjs/tree/main". Please check that the repository exists and try again.

    @char-cole this sounds like a network issue. I just tried it and it's working as expected:

    npx create-next-app \ \
        -e https://github.com/wpengine/faustjs/tree/main \
        --example-path examples/next/faustwp-getting-started \
        --use-npm
    ✔ What is your project named? … my-app
    Creating a new Next.js app in /code/temp/test/my-app.
    
    Downloading files from repo https://github.com/wpengine/faustjs/tree/main. This might take a moment.
    
    Installing packages. This might take a couple of minutes.
    
    ....
    
    Initialized a git repository.
    
    Success! Created my-app at /code/temp/test/my-app
    Inside that directory, you can run several commands:
    
      npm run dev
        Starts the development server.
    
      npm run build
        Builds the app for production.
    
      npm start
        Runs the built app in production mode.
    
    We suggest that you begin by typing:
    
      cd my-app
      npm run dev
    
    

    Can you try again now?

  2. char-cole commented on Mar 12, 2024

    @char-cole
    Author

    thanks @mindctrl . I'm on a different network now and it still fails for me. I guess it's possible there's a security app on my computer blocking this operation.

    How about using a locally cloned repo, is there a way to do that? I don't have experience with Nextjs either yet so I can't tell what it's looking for in an example

  3. mindctrl commented on Mar 12, 2024

    @mindctrl
    Contributor

    Hey @char-cole, interesting. Yes, you can clone the whole repo and then pull the Getting Started example from the examples/next/faustwp-getting-started directory.

  4. locked and limited conversation to collaborators on Mar 13, 2024
  5. converted this issue into a discussion #1842 on Mar 13, 2024
  6. moved this from 🆕 Backlog to ✅ Closed in Headless OSSon Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions