This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
feature request: Accept yarn
instead of npm
#1679
Labels
needs-triage
This ticket needs investigation.
Currently
npm
is hard-coded indfx
:I am asking for support for the (more-or-less) drop-in replacement
yarn
. I had some nice success using it in connection withvuetify
:git clone https://github.com/nop33/dfinity-vue -b vuetify
dfx start --background --clean
yarn add webpack-cli
env NPM=yarn dfx deploy
(suggested way of usingyarn
instead ofnpm
)open http://localhost:8000/?canisterId=ryjl3-tyaaa-aaaaa-aaaba-cai
The
assets.rs
invocation works out of the box (this is what the above commands trigger). Thenew.rs
would need some adaptation (maybe probing).An alternative would be to introduce a
--toolchain
argument (in-lieu-ofNPM
env-var):dfx --toolchain=yarn
would just select theyarn
incarnation of the commands and could potentially also do theyarn add webpack-cli
step.I am happy to send a PR if you think this is a good idea.
The text was updated successfully, but these errors were encountered: