nodemon is not recognized
//You need to install nodemon as globally. Use this command
npm install -g nodemon
//Now you can use nodemon it will work
nodemon is not recognized
//You need to install nodemon as globally. Use this command
npm install -g nodemon
//Now you can use nodemon it will work
nodemon script
# Install nodemon
npm i nodemon
# Write a script like ...
"scripts": {
"start":"nodemon index.js"
}
# Start in your terminal with something like ...
nodemon ./server.js localhost 8000
or
npm run server
generate array range
for (i of range(1, 5)) {
console.log(i);
}
/* Output
* 1 2 3 4 5 */
[...range(1, 5)] // [1, 2, 3, 4, 5]
how to make an array of a value from 1 to the number
[ ...Array(N).keys() ].map( i => i+1);
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us