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

install fails with '-g' #76

Open
CSV-12 opened this issue May 31, 2020 · 1 comment
Open

install fails with '-g' #76

CSV-12 opened this issue May 31, 2020 · 1 comment

Comments

@CSV-12
Copy link

CSV-12 commented May 31, 2020

Not sure what I'm doing wrong.
sudo npm install nodemcu-tool -g

2020-05-31T01_25_42_597Z-debug.log


Checklist

  1. Can you establish a serial connection WITHOUT Nodemcu-Tool - e.g. with a serial terminal like Putty ?
    **YES **
    If not, the issue not related to NodeMCU-Tool - it might be a problem with your serial driver, NodeMCU hardware and/or firmware

  2. Does the nodemcu-tool fsinfo command work ?
    NO


Environment

  • Operating System
    / Ubuntu 18.04.1 LTS / Mint Sylvia

  • ESP Device/Revision
    ESP8266
    Original NodeMCU v1.1

  • NodeMCU-Tool Version
    Please use the least recent version to validate the issue
    ~/node_modules/nodemcu-tool/bin $ ./nodemcu-tool.js --version
    3.2.1
    npm@6.14.5 /usr/lib/node_modules/npm

  • Node.js Version
    v14.3.0

  • NodeMCU LUA Firmware Version
    1.5.1
    Lua 5.2.4 Copyright (C) 1994-2015 Lua.org, PUC-Rio


Debug Output

NOTE In case you have issues with some commands of NodeMCU-Tool, please provide the output of the command including the debug flags

e.g. nodemcu-tool --debug --io-debug info

something like

 $ ./nodemcu-tool --debug --io-debug fsinfo
[config]      ~ debug mode enabled
[config]      ~ io-debug mode enabled - rx/tx messages are passed to logger
[config]      ~ baudrate             = 115200 (type:string)
[config]      ~ port                 = /dev/ttyUSB0 (type:string)
[config]      ~ connectionDelay      = 0 (type:number)
[config]      ~ minify               = false (type:boolean)
[config]      ~ compile              = false (type:boolean)
[config]      ~ keeppath             = false (type:boolean)
[config]      ~ remotename           = null (type:object)
[config]      ~ run                  = false (type:boolean)
[config]      ~ all                  = false (type:boolean)
[config]      ~ json                 = false (type:boolean)
[config]      ~ raw                  = false (type:boolean)
[config]      ~ softreset            = false (type:boolean)
[connector]   ~ Error: Error: No such file or directory, cannot open /dev/ttyUSB0
[NodeMCU-Tool]~ Unable to establish connection
[NodeMCU-Tool]~ Cannot open port "/dev/ttyUSB0"
[NodeMCU-Tool]~ Error: Cannot open port "/dev/ttyUSB0"

Issue Description

Expected Behavior

...

Current Behavior

...

Steps to Reproduce

  1. X
  2. Y
  3. Z

Detailed Description

...

Possible Solution

...

@AndiDittrich
Copy link
Owner

by using linux, you didn't need to install it with sudo as root (full global installation).

you can set the --unsafe-perm to the install command..that should work

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

No branches or pull requests

2 participants