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

CAn't install was cli #2486

Open
Babster opened this issue Aug 12, 2024 · 4 comments
Open

CAn't install was cli #2486

Babster opened this issue Aug 12, 2024 · 4 comments

Comments

@Babster
Copy link

Babster commented Aug 12, 2024

Build/Submit details page URL

No response

Summary

I'm new to Mac dev, bought new computer and follow official site instructions starting from react native.dev and following to docs.expo.dev.
there are issues on almost every step and the below I couldn't solve.

ossuser@Mac-mini-MACbook ~ % npm install -g eas-cli
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated @oclif/[email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported

changed 414 packages in 35s

39 packages are looking for funding
run ⁠ npm fund ⁠ for details
ossuser@Mac-mini-MACbook ~ % eas login
zsh: command not found: eas

Managed or bare?

don't know what it is

Environment

expo-env-info 1.2.0 environment info:
System:
OS: macOS 14.4.1
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.16.0 - /usr/local/bin/node
npm: 10.8.1 - /usr/local/bin/npm
SDKs:
iOS SDK:
Platforms: DriverKit 23.5, iOS 17.5, macOS 14.5, tvOS 17.5, visionOS 1.2, watchOS 10.5
IDEs:
Xcode: 15.4/15F31d - /usr/bin/xcodebuild
npmGlobalPackages:
eas-cli: 10.2.2

Error output

it's above

Reproducible demo or steps to reproduce from a blank project

just buy new computer and try to install your soft on it

@Babster Babster added the needs review Issue is ready to be reviewed by a maintainer label Aug 12, 2024
@szdziedzic
Copy link
Member

How did you install Node and npm? It seems like the issue is that binaries installed by npm (like eas) aren't in your PATH, so it seems like something is wrong with your Node/npm setup.

I personally use volta as my node version manager, but nvm is also a super popular (or even more popular) choice. Would you mind trying one of these tools? I believe that once you set up your node version using them, everything should be prepared correctly and npm binaries should be in your PATH.

@szdziedzic szdziedzic added needs more info and removed needs review Issue is ready to be reviewed by a maintainer labels Aug 12, 2024
@zaazbb
Copy link

zaazbb commented Aug 29, 2024

I met the same issue.

PS D:\test\expo\myapp> npm install -g [email protected]
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated @oclif/[email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported

@zaazbb
Copy link

zaazbb commented Aug 29, 2024

i install nodejs on windows using winget, as below.

winget install Schniz.fnm
fnm env --use-on-cd | Out-String | Invoke-Expression
fnm use --install-if-missing 20
node -v
npm -v

@zaazbb
Copy link

zaazbb commented Aug 29, 2024

Ignore those warnings, the eas commands can run correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants