Skip to content

How to npm install for Electron.js

Wanming Lin edited this page Sep 7, 2021 · 1 revision

For example: to set up the Electron.js example of Image Classification using webnn-native:

Steps:

  1. Firstly, ensure that you have done these steps in README.md.
  2. then run:
cd webnn-native/node/examples/electron/image_classification
npm install --webnn_native_lib_path="../out/Release"

Notice:

If you fail to do npm install due to the proxy error, try with the command line as below (replace **** with your proxy):

npx cross-env ELECTRON_GET_USE_PROXY=true GLOBAL_AGENT_HTTPS_PROXY=**** GLOBAL_AGENT_HTTP_PROXY=**** npm install --webnn_native_lib_path="../out/Release"