node.js - 在 Node 模块中搜索包含 with 语句的 javascript 文件?

标签 node.js bash ubuntu sed visual-studio-code

我有一个导入大量依赖项的模块,这些依赖项又导入大量依赖项等。

当我尝试在 Angular 中使用此模块时,它提示某些代码包含已弃用的 if 语句:

:Uncaught SyntaxError: Strict mode code may not include a with statement

有没有办法搜索 VSCode 中的所有 Node 模块或使用 linux 命令行实用程序,如 sedfind或查找所有带有 with 语句的文件。语法如下所示:
with (object)
    statement

最佳答案

VSCode进入 User settings并输入 search.exc并删除 **/node_modules从模式中取消选中 Search: Use Ignore Files

关于node.js - 在 Node 模块中搜索包含 with 语句的 javascript 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57563564/

相关文章:

node.js - botframework 在网络聊天中提及对话 ID

javascript - node.js 计时 : process. hrtime() vs new Date().getTime()?

c++ - 用 forkpty 和 execvp fork bash 后,bash 不响应 SIGINT

swiftc 没有输出也没有错误

ubuntu - 如何划分两个不同命令的输出?

linux - 如何提高更改文件和文件夹权限的性能?

javascript - Mongoose 连接然后立即断开连接(Node.js + Express)

mysql - 使用 Node.js 和 mysql 进行工作

json - 将参数传递给 jq 过滤器

python -/bin/sh : -c: line 0: syntax error near unexpected token `('