Unable to deploy hello

with node 10.19.0, npm 6.14.4, dfx 0.7.2


npm install warns


npm WARN @dfinity/[email protected] requires a peer of @dfinity/[email protected]^0.9.1-beta-1 but none is installed. You must install peer dependencies yourself.
npm WARN @dfinity/[email protected] requires a peer of @dfinity/[email protected]^0.9.1-beta-1 but none is installed. You must install peer dependencies yourself.

and

dfx deploy fails
ERROR in ./node_modules/@dfinity/agent/lib/esm/request_id.js 5:0-47
Module not found: Error: Can’t resolve ‘@dfinity/principal’ in ‘/home/milind/src/icp/hello/node_modules/@dfinity/agent/lib/esm’
@ ./node_modules/@dfinity/agent/lib/esm/index.js 9:0-29 9:0-29
@ ./src/hello_assets/src/index.js 1:0-50 4:18-27 5:14-31

14 errors have detailed information that is not shown.
Use ‘stats.errorDetails: true’ resp. ‘–stats-error-details’ to show it.

webpack 5.24.4 compiled with 14 errors in 10948 ms

Stderr:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: webpack
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


Any hints on what am I doing wrong?

I should be RTFF. The issue has been raised and answered in another post.

Hi, I had the same problem(s), and wrote a post about it here.

1 Like