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

yarn pnp error #6629

Closed
xiaoxiangmoe opened this issue Mar 13, 2019 · 2 comments
Closed

yarn pnp error #6629

xiaoxiangmoe opened this issue Mar 13, 2019 · 2 comments

Comments

@xiaoxiangmoe
Copy link
Contributor

Is this a bug report?

Yes

Did you try recovering your dependencies?

(Write your answer here.)

No

Which terms did you search for in User Guide?

(Write your answer here if relevant.)

Environment

System:
OS: macOS 10.14.3
CPU: x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
Binaries:
Node: 11.9.0 - /usr/local/bin/node
Yarn: 1.13.0 - /usr/local/bin/yarn
npm: 6.5.0 - /usr/local/bin/npm
Browsers:
Chrome: 72.0.3626.121
Firefox: 63.0.1
Safari: 12.0.3
npmPackages:
react: 16.8.4
react-dom: 16.8.4
react-scripts: Not Found
npmGlobalPackages:
create-react-app: Not Found

Steps to Reproduce

(Write your steps here:)

  1. mkdir foo
  2. cd foo
  3. yarn create react-app . --typescript --use-pnp
  4. yarn run start

Expected Behavior

(Write what you thought would happen.)

It runs well

Actual Behavior

(Write what happened. Please add screenshots!)

yarn run v1.13.0
$ react-scripts start
internal/modules/cjs/loader.js:611
    throw err;
    ^

Error: Cannot find module 'react-dev-utils/crossSpawn'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:609:15)
    at Function.Module._load (internal/modules/cjs/loader.js:535:25)
    at Module.require (internal/modules/cjs/loader.js:663:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/Users/zhaojinxiang/Library/Caches/Yarn/v4/npm-react-scripts-2.1.8-21195bb928b2c0462aa98b2d32edf7d034cff2a9/node_modules/react-scripts/bin/react-scripts.js:18:15)
    at Module._compile (internal/modules/cjs/loader.js:734:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:745:10)
    at Module.load (internal/modules/cjs/loader.js:626:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:566:12)
    at Function.Module._load (internal/modules/cjs/loader.js:558:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. 

Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

@stale
Copy link

stale bot commented Apr 12, 2019

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

@stale stale bot added stale and removed stale labels Apr 12, 2019
@arcanis
Copy link
Contributor

arcanis commented Apr 20, 2019

Duplicate of #5647

@lock lock bot locked and limited conversation to collaborators Apr 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants