Giter Site home page Giter Site logo

Comments (2)

Stopi avatar Stopi commented on May 30, 2024 1

I went back to this after a while and I realized the error message was because of yarn's version.

There are several stable versions of yarn and the "dlx" command is a recent one.
So since I was using v1.22.19, it couldn't work.

$ yarn set version berry
➤ YN0000: Retrieving https://repo.yarnpkg.com/4.0.2/packages/yarnpkg-cli/bin/yarn.js
➤ YN0000: Saving the new release in .yarn/releases/yarn-4.0.2.cjs
➤ YN0000: Done in 2s 358ms

$ rm package.json
# this is required for the npx command to run

$ yarn --version
4.0.2

$ npx makes aurelia
makes v3.2.0 https://makes.js.org
[makes] Using remote skeleton github:aurelia/new
[makes] Fetching tarball https://codeload.github.com/aurelia/new/tar.gz/HEAD

         #
      ######   xxx
     ########  xxxx   ####         _                  _ _         ____
   x   ########    ########       / \  _   _ _ __ ___| (_) __ _  |___ \
     x  ######  #############    / _ \| | | | '__/ _ \ | |/ _` |   __) |
  xxxxx  ##  ###############    / ___ \ |_| | | |  __/ | | (_| |  / __/
   xxxxx  ###############      /_/   \_\__,_|_|  \___|_|_|\__,_| |_____|
    x ###############  xxx
    ##############  #   xx
 ##############  ######          https://aurelia.io
  ########## x  ########         https://github.com/aurelia
    #####  xxxx   ########       https://twitter.com/aureliaeffect
     #   x  x      ######
                     #

✔ Please name this new project: › test
✔ Would you like to use the default setup or customize your choices? › Custom Aurelia 2 Project
✔ What kind of Aurelia 2 project? › Application
✔ What Aurelia 2 release would you like to use? › Latest
✔ Which bundler would you like to use? › Parcel
✔ What transpiler would you like to use? › Babel
✔ Do you want to use Shadow DOM or CSS Module? › Use Shadow DOM
✔ What CSS preprocessor to use? › Plain CSS
✔ What unit testing framework to use? › Jasmine
✔ Do you want to setup e2e test? › No
✔ What kind of sample code do you want in this project? › Bare minimum
[makes] Project test has been created.
✔ Do you want to install npm dependencies now? › Yes, use yarn (node-modules)
➤ YN0000: · Yarn 4.0.2
➤ YN0000: ┌ Resolution step
➤ YN0085: │ + @aurelia/parcel-transformer@npm:2.0.0-beta.8, @aurelia/router@npm:2.0.0-beta.8, @aurelia/testing@npm:2.0.0-beta.8, @babel/core@npm:7.23.5, @babel/eslint-parser@npm:7.23.3, and 745 more.
➤ YN0000: └ Completed in 13s 588ms
➤ YN0000: ┌ Fetch step
➤ YN0013: │ 713 packages were added to the project (+ 406.17 MiB).
➤ YN0000: └ Completed in 1m 58s
➤ YN0000: ┌ Link step
➤ YN0007: │ electron@npm:16.2.8 must be built because it never has been before or the last one failed
➤ YN0007: │ msgpackr-extract@npm:3.0.2 must be built because it never has been before or the last one failed
➤ YN0007: │ @swc/core@npm:1.3.100 [95076] must be built because it never has been before or the last one failed
➤ YN0007: │ lmdb@npm:2.8.5 must be built because it never has been before or the last one failed
➤ YN0000: └ Completed in 21s 985ms
➤ YN0000: · Done in 2m 34s

Next time, you can try to create similar project in silent mode:
 npx makes aurelia new-project-name -s parcel,shadow-dom,jasmine 

Get Started
cd test
yarn start

So it works correctly, the refresh in browser happens as expected. which means I'll close this issue now.

from aurelia.

Stopi avatar Stopi commented on May 30, 2024

It seems building the same project with Babel instead of Parcel gives me the same error message:

error Command "dlx" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: yarn exit code: 1
    at ChildProcess.<anonymous> (/home/www/test/node_modules/makes/dist/index.js:1:25653)
    at ChildProcess.emit (node:events:513:28)
    at ChildProcess._handle.onexit (node:internal/child_process:291:12)

But at least when changing my-app's source, the changes are showing in the browser.

from aurelia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.