简体   繁体   English

为什么我每次都需要重启 npm 服务器?

[英]Why do i need to restart npm server everytime?

我正在为 Reactjs 使用 VSCode,并且在我学习 reactjs 的开始时,不需要重新启动服务器,但是现在每次修改后,我都必须重新启动服务器,然后只在服务器上应用更改

you were probably using nodemon or pm2 or similar tool to watch for file content during development.你很可能使用nodemonpm2或类似工具来监视开发过程中的文件内容。

on production, that feature is probably not used.在生产中,可能不会使用该功能。

to verify this, looks for scripts section in the package.json file and see what command did you use to develop locally and run on production为了验证这一点,在package.json文件中查找scripts部分并查看您使用什么命令在本地开发并在生产中运行

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM