I tried various solutions for this question but not able to pass 2 test cases amongst 4. Please help me crackdown this problem
Perform the below mentioned steps by creating package.json file named npm_commands in the maxbot directory
- Create a file named index.js.
- Write a js code in index.js file to create a string named myVar and value as node package manager and convert it into uppercase.
NOTE: Please use console.log to display the output of myVar in index.js file
- Configure scripts in package.json
(a) to check the versions of npm and node by using
npm run release | tee output1.txt(b) to execute index.js by usingnpm run build | tee output.txt