AndiDittrich / NodeMCU-Tool

:wrench: Upload + Manage Lua files on NodeMCU
https://www.npmjs.com/package/nodemcu-tool
MIT License
310 stars 54 forks source link

install fails with '-g' #76

Open CSV-12 opened 4 years ago

CSV-12 commented 4 years ago

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


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 commented 4 years ago

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