npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

cb() never called Angular project generator

I am following a guide on building a test Blockchain application and I ran into this issue.

What I Wanted to Do

Make a successful call to yo hyperledger-composer:angular, in order to create an angular project from the Hyperledger Composer Angular project generator.

What Happened Instead

The script ran until it had to have npm install the required dependencies. There it runs into problems saying Unhandled rejection Error: EACCES: permission denied, open, '/(some work space that I should have permissions to modify). After that it prints out a few ERR! messages the first one being cb() never called! followed by a report saying that this is an error with npm itself and to report this error in this community.

Reproduction Steps

I followed this guide to step 6 without any problems.
Once getting to step 6 I called yo hyperledger-composer:angular and received the error response.


I have included the log files. 2019-02-21T13_59_08_762Z-debug.log (162.4 KB)

Platform Info

$ npm --versions

{ npm: '6.4.1',
 ares: '1.10.1-DEV',
 cldr: '32.0',
 http_parser: '2.8.0',
 icu: '60.1',
 modules: '57',
 napi: '3',
 nghttp2: '1.33.0',
 node: '8.15.0',
 openssl: '1.0.2q',
 tz: '2017c',
 unicode: '10.0',
 uv: '1.23.2',
 v8: '6.2.414.75',
 zlib: '1.2.11' }

$ node -p process.platform

It may be an issue due to a past npm global install using sudo leaving behind some folders with root ownership.

Try resetting the ownership of your local cache folder, and then running the failing command again::

sudo chown -R $(whoami) ~/.npm