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: command not found #35

Open
insytes opened this issue May 28, 2023 · 1 comment
Open

yarn: command not found #35

insytes opened this issue May 28, 2023 · 1 comment

Comments

@insytes
Copy link

insytes commented May 28, 2023

Your setup script assumes yarn to be installed.

Even more peculiar is that you set npm as the default package manager for NativeScript but then continue to execute yarn... ns package-manager set npm && yarn 🤔

$ npm run setup

> [email protected] setup
> npx rimraf node_modules package-lock.json dist tmp yarn.lock && yarn config set ignore-engines true && ns package-manager set npm && yarn

Need to install the following packages:
  [email protected]
Ok to proceed? (y) 
/var/folders/vh/k87yg0js1738942xms9k8cl80000gp/T/setup-628f8c3a.sh: line 1: yarn: command not found
@NathanWalker
Copy link
Contributor

Hi @insytes its due to the inner package in the demo apps which link the packages that works best with npm (thus “ns package-manager” setting) however the root dependencies we often use yarn in workspace setting (some more advanced benefits like dependency hoisting when needed that way).

However we could remove yarn in the base setup - may push that change this week as I agree probably unnecessary for general needs.

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

No branches or pull requests

2 participants