简体   繁体   English

运行protractor-conf.js文件时收到警告:“由于安全性和可用性问题,不推荐使用Buffer()”

[英]getting warning while running protractor-conf.js file:“ Buffer() is deprecated due to security and usability issues”

I am using protractor-cucumber framework. 我正在使用量角器黄瓜框架。 But while running it it gives me warning " Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc() , Buffer.allocUnsafe() , or Buffer.from() methods instead." 但是在运行它时,它会警告“由于安全性和可用性问题,不推荐使用Buffer() 。请使用Buffer.alloc()Buffer.allocUnsafe()Buffer.from()方法。”

  1. node version: v10.15.3 节点版本:v10.15.3
  2. npm version: 6.4.1 npm版本:6.4.1

     { "dependencies": { "chai": "4.1.2", "cucumber": "4.2.1", "protractor": "^5.4.2", "protractor-cucumber-framework": "4.2.0" } } 

Try the below dependency version 尝试以下依赖版本

{
   "dependencies": {
                     "chai": "4.2.0",
                     "cucumber": "5.1.0",
                     "protractor": "^5.4.2",
                     "protractor-cucumber-framework": "6.1.1"
                   }
}

Hope it helps you 希望它能帮到你

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 由于安全性和可用性问题,不推荐使用 Buffer()。 请改用 Buffer.alloc()、Buffer.allocUnsafe() 或 Buffer.from() 方法 - Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead 弃用警告:当我将脚本移动到另一台服务器时,由于安全和可用性问题,不推荐使用 Buffer() - DeprecationWarning: Buffer() is deprecated due to security and usability issues when I move my script to another server 安装 expo-cli 时在 Node js 中收到不推荐使用的警告 - Getting deprecated warning in Node js while installing expo-cli 运行 conf.js 文件时出现意外的标识符错误 - Unexpected identifier error while running conf.js file 抑制“Buffer() 已弃用”警告 - Suppressing `Buffer() is deprecated` warning 量角器无法解析conf.js - Protractor unable to parse conf.js 运行npm install命令时收到“不建议使用npm WARN”警告 - Getting 'npm WARN deprecated' warnings while running npm install commands 让node.js将缓冲区作为文件发送 - getting node.js to send buffer as a file 运行 nodejs 文件时出现警告消息 - Warning message while running nodejs file 为什么我会收到这个已弃用的警告以及为什么我不能修改我的集合?,MongoDB,NODE.JS - Why am I getting this deprecated warning and why I can't modify my collection!? MongoDB,NODE JS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM