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

pnpm fails to build the repo. Error: NX Command failed: pod install #13658

Closed
dimitardanailov opened this issue Dec 6, 2022 · 5 comments
Closed
Labels
outdated scope: react-native Issues relating to React Native type: bug

Comments

@dimitardanailov
Copy link

Current Behavior

If the tempalte is react native: pnpm fails to build the repo.

Expected Behavior

I'd like to use as a package manager: pnpm

Github Repo

No response

Steps to Reproduce

Create a dummy repo:

npx create-nx-workspace test \     
--preset=react-native \
--appName=mobile
  1. Remove all node_modules
rm -rf node_modules
  1. Please execute as a command: pnpm install

  2. Please execute: npx nx run-ios mobile

The output is:

Screenshot 2022-12-06 at 3 48 35 PM

Nx Report

>  NX   Report complete - copy this into the issue template

   Node : 16.14.2
   OS   : darwin arm64
   yarn : 1.22.19
   
   nx : 15.2.4
   @nrwl/angular : Not Found
   @nrwl/cypress : 15.2.4
   @nrwl/detox : 15.2.4
   @nrwl/devkit : 15.2.4
   @nrwl/esbuild : Not Found
   @nrwl/eslint-plugin-nx : 15.2.4
   @nrwl/expo : Not Found
   @nrwl/express : Not Found
   @nrwl/jest : 15.2.4
   @nrwl/js : 15.2.4
   @nrwl/linter : 15.2.4
   @nrwl/nest : Not Found
   @nrwl/next : Not Found
   @nrwl/node : Not Found
   @nrwl/nx-cloud : Not Found
   @nrwl/nx-plugin : Not Found
   @nrwl/react : 15.2.4
   @nrwl/react-native : 15.2.4
   @nrwl/rollup : 15.2.4
   @nrwl/schematics : Not Found
   @nrwl/storybook : 15.2.4
   @nrwl/web : 15.2.4
   @nrwl/webpack : 15.2.4
   @nrwl/workspace : 15.2.4
   typescript : 4.8.4
   ---------------------------------------
   Local workspace plugins:
   ---------------------------------------
   Community plugins:

Failure Logs

No response

Additional Information

No response

@dimitardanailov
Copy link
Author

I don't have an issue if the package manager is: Yarn
Example:
Screenshot 2022-12-06 at 3 51 55 PM

@FrozenPandaz FrozenPandaz added the scope: react-native Issues relating to React Native label Dec 6, 2022
@FrozenPandaz
Copy link
Collaborator

Did you also remove package-lock.json? Does it work then?

@dimitardanailov
Copy link
Author

dimitardanailov commented Dec 12, 2022

Greetings,

I've removed:

rm yarn-lock.lock
rm package-lock.json

The current error is:

 ERROR  ENOENT: no such file or directory, unlink '/Users/ddanailov/Workspace/ICRC/fenix/apps/onboarding/node_modules/react'
 ```
 
 I've tried as solution:
 ```
 rm pnpm-lock.yaml
rm -rf node_modules
rm -rf ~/Library/pnpm
pnpm install

The pactch doesn't work in my case. I've used as inperation of my development: pnpm/pnpm#4997

@xiongemi
Copy link
Collaborator

this should be fixed since now have added e2e tests with pnpm for expo.

@github-actions
Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated scope: react-native Issues relating to React Native type: bug
Projects
None yet
Development

No branches or pull requests

3 participants