In some implementations of Denali R2, the
npm install command returns an error. As a result, the installation cannot continue. This error occurs due to a version mismatch with the request HTTP client. You must change the version of the
request client to correct the error.
Step 1: Modify package.json
If you have not already done so, create a backup of package.json, located in the root of your project directory.
Open package.json and make the following changes.
Locate the line:
Replace it with the following line:
Save the file.
Step 2: Test Your Changes
Confirm your results by running the
npm install command again.
npm install command successfully installs the required Node.js packages.