Node.js labs how to check dependency of helmet version
Hello @gopalgavas25,
Try this command cat /home/thor/the-example-app.nodejs/package.json | grep helmet
Thanks,
KodeKloud Support
thor@host01 ~$ sudo cat /home/thor/the-example-app.nodejs/package.json | grep helmet
cat: /home/thor/the-example-app.nodejs/package.json: Not a directory
I am facing the same issue it says
thor@host01 ~$ cat /home/thor/the-example-app.nodejs/package.json | grep helmet
cat: /home/thor/the-example-app.nodejs/package.json: Not a directory
Which Lab is this (link please).
It is telling you that the directory /home/thor/the-example-app.nodejs
does not exist.
thor@host01 ~$ git clone https://github.com/contentful/the-example-app.nodejs
Cloning into 'the-example-app.nodejs'...
remote: Enumerating objects: 2935, done.
remote: Counting objects: 100% (21/21), done.
remote: Compressing objects: 100% (21/21), done.
remote: Total 2935 (delta 12), reused 2 (delta 0), pack-reused 2914
Receiving objects: 100% (2935/2935), 6.81 MiB | 0 bytes/s, done.
Resolving deltas: 100% (1770/1770), done.
thor@host01 ~$ cat the-example-app.nodejs/package.json | grep helmet
"helmet": "^3.11.0",
thor@host01 ~$
Provided you cloned the repo correctly, the directory will exist.