Just go to Settings (Ctrl+,) → Install, then search require-anywhere
, and click Install
apm install require-anywhere
git clone https://github.com/ksxatompackages/require-anywhereapm link ./require-anywhereapm develop require-anywhere ./require-anywherecd ./require-anywherenpm install
global.module.paths
to allow Atom users to require
any node modules they wantInclude all paths that match ${left}\${mid}\${right}
or ${left}\${right}
, where:
${left}
is windows environment variable, one of: %UserProfile%
, %AppData%
, %ProgramFiles%
, %ProgramFiles(x86)%
, %ProgramFiles(x64)%
, %ProgramW6432%
, %HomeDrive%
${mid}
is one of: nodejs
, nodejs\repl
, npm
${right}
is one of: atom-node-modules
, atom-dev-node-modules
, node_modules
, .node_modules
, .node_libraries
Include all paths that match ${left}/${right}
, where:
${left}
is one of: ~
, ~/repl
, /home
, /home/repl
, /usr/share
, /
, /nodejs
, /node
${right}
is one of: atom-node-modules
, atom-dev-node-modules
, node_modules
, .node_modules
, .node_libraries
Just go to Settings (Ctrl+,) → Packages → require-anywhere, then do something
You need to reload Atom to apply settings
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.