← All tasks
javascriptpnpm/pnpm #991Not a task: not reproduced

Not working with Gatsby

envgap__pnpm__pnpm-991

Original GitHub issue ↗Opened 2018-01-15

01 / FAILURE SIGNATURE

As reported upstream

Error: Cannot find module 'request'
Not a benchmark task.
  • No curated issue-specific recipe or verified environment fix is available.

02 / ENVIRONMENT RECIPE

Base commit
Not freshly verified
Manifest
package.json
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

pnpm/pnpm #991 · read the original issue
### pnpm version: 1.23.2



### Code to reproduce the issue:



```

npm i -g gatsby-cli

gatsby new test

cd test

rm -rf node_modules && rm package-lock.json

pnpm i

gatsby develop

```



### Expected behavior: Gatsby runs



### Actual behavior:



```

➜  test gatsby develop

/usr/local/bin/gatsby develop



Options:

  -h, --help     Show help                                                                                                                                     [boolean]

  --verbose      Turn on verbose output                                                                                                       [boolean] [default: false]

  -H, --host     Set host. Defaults to localhost                                                                                         [string] [default: "localhost"]

  -p, --port     Set port. Defaults to 8000                                                                                                   [string] [default: "8000"]

  -o, --open     Open the site in your browser for you.                                                                                                        [boolean]

  -v, --version  Show version number                                                                                                                           [boolean]



error There was a problem loading the local develop command. Gatsby may not be installed. Perhaps you need to run "npm install"?





  Error: Cannot find module 'request'



  - module.js:11 require

    internal/module.js:11:18



  - develop.js:229 Object.<anonymous>

    [test]/[1.9.155]/[gatsby]/dist/commands/develop.js:229:15



  - module.js:11 require

    internal/module.js:11:18



  - create-cli.js:53 resolveLocalCommand

    [lib]/[gatsby-cli]/lib/create-cli.js:53:14



  - create-cli.js:70 Object.handler

    [lib]/[gatsby-cli]/lib/create-cli.js:70:22



  - command.js:233 Object.self.runCommand

    [lib]/[gatsby-cli]/[yargs]/lib/command.js:233:22



  - yargs.js:990 Object.Yargs.self._parseArgs

    [lib]/[gatsby-cli]/[yargs]/yargs.js:990:30





```



### Additional information:



 - `node -v` prints: 9.3.0

 - Windows, OS X, or Linux?: OS X

Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]

Issue-specific recipe and runtime smoke command require review against the complete issue and repository.

Legacy already_works is install-only; proposed control still requires runtime verification.