Invalid URI \"“http://registry.npmjs.org/”/showdown\""

On trying to apply current update on my V12 I get an error to this effect

error An unexpected error occurred: ““http://registry.npmjs.org/”/showdown: Invalid URI ““http://registry.npmjs.org/”/showdown””.
info If you think this is a bug, please open a bug report with the information provided in “/home/frappe/frappe-bench/apps/frappe/yarn-error.log”.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
.
.
.
bench.utils.CommandFailedError: yarn install

Yarn is installed and I’m not sure why the invalid URL and whether I have to correct it in some config file.

I managed to solve this problem with the following command

npm config set registry https://registry.npmjs.org

1 Like