For anyone looking for more detailed information on working with Node.js in a CEP extension, a frequently overlooked step is to enable Node.js in the manifest.xml
file:
<CEFCommandLine>
<Parameter>--enable-nodejs</Parameter>
</CEFCommandLine>
A full manifest depends on your desired setup and can get long, but here's one example.
A few resources to learn more:
- The new CEP Getting Started guide covers writing a basic manifest.
- Even if you're using CEP 8.0, you'll need to have the
Version="7.0"
attribute for the ExtensionManifest
and RequiredRuntime
elements.
- See the sample manifest in this Getting Started guide.
- The CEP Cookbook has some deeper info on writing a manifest file.
- We've recently updated the samples in the CEP Samples repo.
- This sample will give you some further insight into how to use Node.js.
- We've got a blog post up that walks you through a more complex setup with Node.js.