Code Monkey home page Code Monkey logo

Comments (3)

lucacasonato avatar lucacasonato commented on July 3, 2024

The error means that deno can't be found in your path. When you install deno via asdf, can you run it yourself from the terminal you are running now dev from?

from now-deno.

kt3k avatar kt3k commented on July 3, 2024

Yes, I can use deno under ~/.asdf/shims/ in the terminal and now dev from the same terminal seems failing to find it.

MacBook-Pro-4:now-deno-example kt3k$ which deno
/Users/kt3k/.asdf/shims/deno
MacBook-Pro-4:now-deno-example kt3k$ deno --version
deno 0.32.0
v8 8.1.108
typescript 3.7.2
MacBook-Pro-4:now-deno-example kt3k$ now dev
Now CLI 17.0.3 dev (beta) — https://zeit.co/feedback
> Creating initial build
> Success! Build completed
> Ready! Available at http://localhost:3000
unknown command: deno. Perhaps you have to reshim?
unknown command: deno. Perhaps you have to reshim?
error: bad deno executable
Unexpected bootstrap error when calling AWS_LAMBDA_RUNTIME_API /init/error:
InitException: bad deno executable
    at Lambda.<anonymous> (/Users/kt3k/.asdf/installs/nodejs/12.13.0/.npm/lib/node_modules/now/dist/index.js:2:3545645)
    at Generator.next (<anonymous>)
    at fulfilled (/Users/kt3k/.asdf/installs/nodejs/12.13.0/.npm/lib/node_modules/now/dist/index.js:2:3543532)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)

(Could be an issue of asdf...)

from now-deno.

lucacasonato avatar lucacasonato commented on July 3, 2024

Interesting... internally I call which deno and then create a symlink from [project root]/.now/builders/now-deno/[entry file path]/layer/bin/deno to the deno executable I found with which deno. I don't know if asdf just doesn't like its shims being symlinked. Can you check if there is a symlink at [project root]/.now/builders/now-deno/[entry file path]/layer/bin/deno and if you can run it? That might give some more insight.

from now-deno.

Related Issues (13)

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.