NativeScript / plugin-seed

Build NativeScript Plugins Fast ⚡

Home Page:https://docs.nativescript.org/plugins/plugin-workspace-guide

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yarn: command not found

insytes opened this issue · comments

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

> plugins@0.0.0 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:
  rimraf@5.0.1
Ok to proceed? (y) 
/var/folders/vh/k87yg0js1738942xms9k8cl80000gp/T/setup-628f8c3a.sh: line 1: yarn: command not found

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.