简体   繁体   English

如何切换到已保存到桌面的 node_modules 文件的本地版本?

[英]How do i switch to a local version of a node_modules file that I've saved to desktop?

I'm trying to make some changes to the react-rte text editor but can't test it...我正在尝试对 react-rte 文本编辑器进行一些更改,但无法对其进行测试...

I've noticed literally nothing is coming through to the client after putting in console.logs, alerts, new code etc.我注意到在放入 console.logs、警报、新代码等之后,客户端实际上没有任何内容。

How do i proxy (?) or bounce the requests to 1 or 2 specific files in node_modules, so the webapp/node server pull in my local file saved on my desktop eg desktop/my-edited-file.js .我如何代理(?)或将请求反弹到 node_modules 中的 1 或 2 个特定文件,以便 webapp/node 服务器拉入我保存在桌面上的本地文件,例如desktop/my-edited-file.js

Official File:官方文件:

my-project:
    --node_modules/react-rte/lib/lib/EditorToolbar.js
      ▲ this file ▲
    --pkg json
    --ReadMe.md
    --yarn.lock
    --src/
    ----app.js
    ----header.js etc

Edited File:编辑文件:

/Users/DesLynham/desktop/myBalls.js

please help 😎🍺请帮忙😎🍺

您可以使用CharlesProxy 的 Map Local 功能将任何 HTTP 请求映射到您计算机上的本地文件。

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

相关问题 打字稿:如何在node_modules中导入和添加嵌套文件的输入? - Typescript: How do I import and add typings for a nested file in node_modules? 如何安装 node_modules? - How can i install node_modules? 在node_modules中对文件的本地更改(角度2) - Local changes to file in node_modules (Angular 2) 减少 node_modules 后 node_modules 出错 - Error with node_modules after I decreased the node_modules Webpack 正在从我机器的全局“node_modules”导入模块。 如何让它只从我的项目的 `node_modules` 导入? - Webpack is importing modules from my machine's global `node_modules`. How do I get it to only import from my project's `node_modules`? 如何从我的代码覆盖范围中排除“node_modules”? - How do I exclude "node_modules" from my code coverage? 如何从项目的 node_modules 添加符号链接? - How do I add a symlink from project's node_modules? 我该如何解决这个问题:“node_modules/expo/AppEntry.js: [BABEL]”? - How do I fix this issue: "node_modules/expo/AppEntry.js: [BABEL]"? 我如何在反应中的 node_modules 文件夹上运行 jest 测试 - how do i run jest test on a node_modules folder in react 如何将 node_modules 下的节点安装模块中的模块添加到浏览器? - How can I add modules in node install modules under node_modules to browser?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM