microsoft / pxt-adafruit

Microsoft MakeCode editor for Adafruit Circuit Playground Express
https://makecode.adafruit.com
Other
81 stars 77 forks source link

pxt console keeps asking to run 'pxt npminstallnative' #1180

Open AlienFu opened 3 years ago

AlienFu commented 3 years ago

Describe the bug I can't use pxt console. Which makes it hard to debug

To Reproduce Steps to reproduce the behavior:

  1. set up a project using pxt cli
  2. in project director run pxt console

Using target adafruit with build engine codal target: v1.6.4 /home/pi/adafruit/node_modules/pxt-adafruit pxt-core: v6.1.10 /home/pi/adafruit/node_modules/pxt-core monitoring console.log console support not installed, did you run "pxt npminstallnative"?

  1. run pxt npminstallnative
  2. pxt console again

Cannot find node_modules/pxtcli.json nor pxtarget.json Couldn't find PXT; maybe try 'pxt target microbit'?

Expected behavior be able to see logs using pxt console

Screenshots Add screenshots to help explain your problem. You can copy paste the screenshot in the github report. The .gif screen recording is very useful as well.

Desktop (please complete the following information):

riknoll commented 3 years ago

did you run pxt target microbit? you might also need to run pxt install