npm ERR! notarget No matching version found for @types/paho-mqtt@^1.1.0

I can see that this particular package exists when I go to the npm website, as well as running npm view paho-mqtt.

Whenever I try to run npm install or npm update I get this error.

Does anyone know what could be going on?

According to the error message you were trying to install @types/paho-mqtt, which doesn’t have a version 1.1.0 or higher. Did you mean to install paho-mqtt?

1 Like

Thanks heaps! I just noticed that there were 2 entries in the package.json, one was paho-mqtt and the other was @types/paho-mqtt. Removing the later solved the issue.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.