Chapter 24 Discussion
Running npm install
on the performance directory from react-resources.zip
fails with:
error code E401
error Incorrect or missing password.
This happens because some dependencies are hosted on a site that requires login. To fix I simply pointed them all to registry.npmjs.org
, which can be done by running:
sed -i 's#https://artifactory.banno-tools.com/artifactory/api/npm/npm/#https://registry.npmjs.org/#g' package-lock.json
Or applying the following patch: https://gist.githubusercontent.com/utzig/e6901f39d1e2bc9b623d488959b32eff/raw/384884fbea833e9e029119b968d045f1bd3f31be/performance-package-lock.diff
This is fixed now (in the performance and ch 24/25 solution folders).
1 Like