When calling npm install node-red-contrib-smartnora, are you in the directory where you have nodered installed? You need to be exactly there. That is, for example, in my case, the directory /rooot/.node-red
Instead of installing from the console you can install via the Node-Red GUI.
You go to the Nodered panel and in the top right corner you have a menu. You select "Manage palette" then click on the install tab and enter smartnor in the "search modules" field.