NodeMCU-Tool icon indicating copy to clipboard operation
NodeMCU-Tool copied to clipboard

install fails with '-g'

Open CSV-12 opened this issue 4 years ago • 1 comments

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 [email protected] /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

...

CSV-12 avatar May 31 '20 01:05 CSV-12

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

AndiDittrich avatar May 31 '20 07:05 AndiDittrich