gridsome: Error: Unknown command develop in gridsome

Description

After installation of gridsome, when try to start running gridsome develop

Steps to reproduce

  1. Proceed with installation of Gridsome CLI tool
  2. Next create gridsome project
  3. Finally run command gridsome develop

Expected result

gridsome develop to start local dev server at http://localhost:8080

Actual result

This should be running the gridsome application in our localhost, but it showing below mentioned error.

Environment

Paste the information here as shown by gridsome info

Srirams-MBP:mine sriramkarthick$ gridsome info

  System:
    OS: macOS Mojave 10.14.6
    CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
  Binaries:
    Node: 12.13.1 - ~/.nvm/versions/node/v12.13.1/bin/node
    Yarn: 1.16.0 - /usr/local/bin/yarn
    npm: 6.12.1 - ~/.nvm/versions/node/v12.13.1/bin/npm
  Browsers:
    Chrome: 83.0.4103.116
    Edge: 83.0.478.56
    Firefox: 77.0.1
    Safari: 13.1.1

Screenshot for your reference:

Screenshot 2020-06-28 at 9 54 48 PM

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 6
  • Comments: 21 (4 by maintainers)

Most upvoted comments

Do a “npm install” before and it should work.

I’m also having the same problem with the command

gridsome develop

Output:

Unknown command develop


Usage: gridsome <command> [options]

Options:
  -v, --version            output the version number
  -h, --help               output usage information

Commands:
  create <name> [starter]  create a new website
  info                     output information about the local environment

  Run gridsome <command> --help for detailed usage of given command.

I also ran npm install in the correct directory, this didn’t help either. 😞

Version:

gridsome --version
@gridsome/cli v0.3.4