I am new to Atom Package development. I couldn’t require Node package properly.
I need to use request module and I have this code in my file "request = require ‘request’"
But I keep getting this warning:
“Failed to activate package named ‘todo’ Error: Cannot find module ‘request’”
I suspect it’s because the directory is not right. But I viewed some Atom packages source code and I saw this is exactly how it’s done in Ask_Stack_Atom package.
How am I supposed to require request package in my code?