Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: command line bugs when run pxt init #8514

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TbhT
Copy link

@TbhT TbhT commented Sep 23, 2021

when i test pxt init in the doc of the website https://makecode.com/cli,it happens as bellow:

➜  pxt init
Using target microbit with build engine yotta
  target: v4.0.12 ****/pxt-t1/node_modules/pxt-microbit
  pxt-core: v7.0.8 *****/pxt-t1/node_modules/pxt-core
name [blink]: 
description []: hello
license [undefined]: MIT
installing dependencies...
INTERNAL ERROR: TypeError: Cannot read property 'flags' of undefined
    at installAsync (****/pxt-t1/node_modules/pxt-core/built/pxt.js:156876:24)
    at *****/pxt-t1/node_modules/pxt-core/built/pxt.js:157023:21
    at processTicksAndRejections (internal/process/task_queues.js:95:5)

and it seems like a pxt-cli bugs in pxt repo that the parsed variable can not be found , when installAsync() called without any params.

fix the pxt-cli command line bugs when run `pxt init`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants