Problem adding action code (exampe of quik start raspberrypi)

Step 7 from the quik start raspberry pi

this will not work
npm install mqtt --save

The response is: Sorry name can only contain url friendly characters.

Actually you have to answer a serie of questions asked by npm`and it will generate a file named “package.json”

Since I don’t know how to answer the questions i just enter tot he next question.
The end result is a package.json file. Contents:
“name”: “mqtt”,
“version”: “1.0.0”,
“description”: “”,
“main”: “index.js”,
“scripts”: {
“test”: “echo “Error: no test specified” && exit 1”
“author”: “”,
“license”: “ISC”

In the index.js you need to change the host name. But as far a I can see my hostname of the raspberrypi is still raspberrypi. This means don’t change this and the file is the same as in the step 7

When I execute the command: node index.js
The response is:

What should I do to get it working?
Change the package.json?