{ //...">All geek questions in one placeSyntaxError: Unexpected token => NodejsThese scripts work on Windows 10 Nodejs, but not on Ubuntu Nodejs v0.12bot.on("message", msg => { // Content }); +4javascript node.jsswagster Jul 15 '16 at 8:17source share1 answerarrow function => are ES6 functions that you cannot use with ES5, which was the default for node in version 4.4.5. On Windows, you must install the latest version of node that supports this type of function+4Satpal tanan Jul 15 '16 at 17:49source shareSource: https://habr.com/ru/post/1647992/More articles:Swift: Select Queue for Bluetooth Central Manager - iosКогда использовать AWS CLI и EB CLI - amazon-web-servicesI want to save the result for a loop with enter - phpCannot find the requested object. when creating X509certificate2 - c #How to restrict DU / ADT for specific identifiers / value constructors - design-patternsВиджет внутри другого виджета Qt - c++Raspberry PI - send mail from the command line using the GMAIL smtp server - command-linepanic! does not stop Iron Server - rustWhy does AsyncTask always force the application to stop? - androidClang and GCC differently when resolving overloading variational function patterns - c ++All Articles
These scripts work on Windows 10 Nodejs, but not on Ubuntu Nodejs v0.12
bot.on("message", msg => { // Content });
arrow function => are ES6 functions that you cannot use with ES5, which was the default for node in version 4.4.5. On Windows, you must install the latest version of node that supports this type of function
Source: https://habr.com/ru/post/1647992/More articles:Swift: Select Queue for Bluetooth Central Manager - iosКогда использовать AWS CLI и EB CLI - amazon-web-servicesI want to save the result for a loop with enter - phpCannot find the requested object. when creating X509certificate2 - c #How to restrict DU / ADT for specific identifiers / value constructors - design-patternsВиджет внутри другого виджета Qt - c++Raspberry PI - send mail from the command line using the GMAIL smtp server - command-linepanic! does not stop Iron Server - rustWhy does AsyncTask always force the application to stop? - androidClang and GCC differently when resolving overloading variational function patterns - c ++All Articles