I am looking to move my react app over to a DO droplet and I came across this well written tutorial by scotch.io (https://scotch.io/tutorials/how-to-host-a-node-js-app-on-digital-ocean). After I clone my repo and run ‘sudo npm install’, all goes well with no errors. However when looking in the node_modules folder, nothing is there. This results in missing module errors when running express server and webpack build. Has anyone run across this issue?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Update: Did not seem to do the trick. Was in my local terminal when i ran the cache clean, thinking it worked. However, upon running it in the droplet terminal, no luck.
Not if this will help, but here is a screenshot of the install… http://imgur.com/TBGXraH
this is my package.json file used when running npm install. The first error I see when trying to run my build is Error: Cannot find module ‘del’
@lsbyerley
Have you checked your
package.json
file to verify whether or not the projects’ dependencies have been saved, thus allowingnpm
to pull them down when you runnpm install
?