plugin-seed icon indicating copy to clipboard operation
plugin-seed copied to clipboard

yarn: command not found

Open insytes opened this issue 1 year ago • 1 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

> [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

insytes avatar May 28 '23 21:05 insytes

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.

NathanWalker avatar May 29 '23 05:05 NathanWalker