question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error In Create React Native App

See original GitHub issue
Creating a new React Native app in F:\He.

Installing packages. This might take a couple minutes.
Installing react-native-scripts...

C:\Users\Arsalan Sabir\AppData\Roaming\npm\node_modules\yarn\bin\yarn.js:61
      

throw err;
      ^

Error: ENOENT: no such file or directory, open 'C:\Users\Arsalan Sabir\AppData\Roaming\npm\node_modules\yarn\node_modules\end-of-stream\node_modules\once\once.js'
    at Error (native)
    at Object.fs.openSync (fs.js:640:18)
    at Object.fs.readFileSync (fs.js:508:33)
    at Object.Module._extensions..js (module.js:578:20)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\Arsalan Sabir\AppData\Roaming\npm\node_modules\yarn\node_modules\end-of-stream\index.js:1:74)
`yarnpkg add --dev --exact react-native-scripts` failed

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
anpcommented, Mar 16, 2017

@aayanqazi @flexzuu @eloquentbit There appears to be a problem with current versions of yarn when requesting to ignore optional dependencies – these failures are happening because transitive optional deps are causing the installation to fail. It’s not a bad idea to get the build dependencies set up (https://www.npmjs.com/package/windows-build-tools, python, etc.), it’s also possible to resolve this by uninstalling yarn and allowing CRNA to use npm (which sucks) but I am hoping to find a workaround that doesn’t have these issues…

1reaction
aayanqazicommented, Mar 15, 2017

Now Facing That Issue

[2/4] Fetching packages… [3/4] Linking dependencies… [4/4] Building fresh packages… [1/5] ⠂ @exponent/ngrok: ngrok - downloading binary https://bin.equinox.io/c/6raCnPaTf2c/ngrok-beta-windows-amd64.zip … [-/5] ⠂ waiting… [3/5] ⠂ ref: using node@6.10.0 | win32 | x64 [4/5] ⠄ runas: node@6.10.0 | win32 | x64 error F:\my-project\node_modules\ref: Command failed. Exit code: 1 Command: C:\Windows\system32\cmd.exe Arguments: /d /s /c node-gyp rebuild Directory: F:\my-project\node_modules\ref Output: F:\my-project\node_modules\ref>if not defined npm_config_node_gyp (node “C:\Users\Arsalan Sabir\AppData\Roaming\npm\node_modules\yarn\bin\node-gyp-bin\…..\node_modules\node-gyp\bin\node-gyp.js” rebuild ) else (node rebuild ) gyp info it worked if it ends with ok gyp info using node-gyp@3.5.0 gyp info using node@6.10.0 | win32 | x64 gyp ERR! configure error gyp ERR! stack Error: Can’t find Python executable “C:\Users\Arsalan Sabir\AppData\Local\Programs\Python\Python36-32”, you can set the PYTHON env variable. gyp ERR! stack at Object.failNoPython (C:\Users\Arsalan Sabir\AppData\Roaming\npm\node_modules\yarn\node_modules\node-gyp\lib\configure.js:454:19) gyp ERR! stack at Object.<anonymous> (C:\Users\Arsalan Sabir\AppData\Roaming\npm\node_modules\yarn\node_modules\node-gyp\lib\configure.js:480:16) gyp ERR! stack at C:\Users\Arsalan Sabir\AppData\Roaming\npm\node_modules\yarn\node_modules\graceful-fs\polyfills.js:284:29 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:123:15) gyp ERR! System Windows_NT 10.0.14393 gyp ERR! command “E:\node\node.exe” “C:\Users\Arsalan Sabir\AppData\Roaming\npm\node_modules\yarn\node_modules\node-gyp\bin\node-gyp.js” “rebuild” gyp ERR! cwd F:\my-project\node_modules\ref gyp ERR! node -v v6.10.0 gyp ERR! node-gyp -v v3.5.0 gyp ERR! not ok info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command. yarnpkg add --dev --exact --ignore-optional react-native-scripts failed

Read more comments on GitHub >

github_iconTop Results From Across the Web

I want to create React Native App, but getting this error. What ...
1 Answer 1 · Download and install JDK (v7 or newer) · Download and install Node · Download and install Android Studio Create...
Read more >
Error creating new app with "create-react-native-app" #229
Description I tried to create a new react native app using the command "create-react-native-app" I'm using window 8.
Read more >
Troubleshooting - React Native
These are some common issues you may run into while setting up React Native. If you encounter something that is not listed here, ......
Read more >
Addressing common errors in React Native - LogRocket Blog
As a React Native developer, you're bound to run into some errors when developing your application. When an error is detected by the...
Read more >
create-react-app not working ⚠️ error solved - YouTube
In this video, we will solve the error in reactjs that We no longer support global installation of Create React App. ✔️ create...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found