You cannot use the ‘@’ operator to reference variables in an expression. ‘@rocket’ can only be used as an argument
for a command. To reference variables in an expression, use ‘$rocket’.
yes, and even running the command informed in the repository returns the same error, this is the first time I have come across this type of problem but I tried some possible solutions such as changing the @ to $ or putting the command npm install ‘@rocket.chat/ sdk’ --save with single quotes at the beginning and end of the sdk but I was not successful
john@testbox:~$ cd git
john@testbox:~/git$ mkdir bot
john@testbox:~/git$ cd bot
john@testbox:~/git/bot$ npm init -y
Wrote to /home/john/git/bot/package.json:
{
"name": "bot",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"description": ""
}
john@testbox:~/git/bot$ npm install @rocket.chat/sdk
added 21 packages, and audited 22 packages in 8s
2 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
john@testbox:~/git/bot$
john@testbox:~/git/bot$ ll
total 28
drwxrwxr-x 3 john john 4096 May 22 14:35 ./
drwxrwxr-x 8 john john 4096 May 22 14:21 ../
drwxrwxr-x 22 john john 4096 May 22 14:35 node_modules/
-rw-rw-r-- 1 john john 8457 May 22 14:35 package-lock.json
-rw-rw-r-- 1 john john 277 May 22 14:35 package.json
I created the server.js and reply.js files and it came up immediately.