Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add
npm install
instruction for wasm-node (#1457)
if we don't tell the user to explicitly use `npm install`, they might run into: ``` Finished dev [optimized + debuginfo] target(s) in 3m 24s internal/process/esm_loader.js:74 internalBinding('errors').triggerUncaughtException( ^ Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'websocket' imported from /home/bear/develop/parity/smoldot/bin/wasm-node/javascript/demo/demo.js at new NodeError (internal/errors.js:322:7) at packageResolve (internal/modules/esm/resolve.js:687:9) at moduleResolve (internal/modules/esm/resolve.js:728:18) at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:842:11) at Loader.resolve (internal/modules/esm/loader.js:89:40) at Loader.getModuleJob (internal/modules/esm/loader.js:242:28) at ModuleWrap.<anonymous> (internal/modules/esm/module_job.js:76:40) at link (internal/modules/esm/module_job.js:75:36) { code: 'ERR_MODULE_NOT_FOUND' } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @substrate/[email protected] start: `node prepare.js --debug && node demo/demo.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @substrate/[email protected] start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm WARN Local package.json exists, but node_modules missing, did you mean to install? npm ERR! A complete log of this run can be found in: npm ERR! /home/bear/.npm/_logs/2021-10-16T02_53_52_914Z-debug.log ``` by running `npm install` before `npm start`, I was able to start the wasm-node without problems.
- Loading branch information