简体   繁体   中英

Is node_modules directory required on a remote server for React project?

I an running a react project locally. I want to now run from a remote server, is the node_modules directory necessary to have on the server?

If there are dependencies with particular node modules, of course, yes. Try to remove the folder and run your app. If there are errors, try to 'npm install' and run again. If it works, you need to include node modules folder.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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