Author: Kavit

0

npm WARN Invalid name:

Have you received below error while doing npm install? npm install npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN Invalid name: Foo Bar Solution: In your package.json, “name”...

0

How to copy files from one s3 bucket to another?

AWS does not replicate existing files from one bucket to another when you enable cross region replication from one bucket to another. The easiest way to replicate existing files from one bucket to another...

0

How to run unix commands from nodejs?

Nodejs allows us to execute linux commands from its child process module as shown below. var exec = require(‘child_process’).exec; // any unix based command var cmdToLaunch = “ls -la”; function execCB (error, stdout, stderr)...

0

How to run node script from BASH?

Below shell script is running a node script, which gets an object from package.json, updates the app version and writes it back to the package.json using node API. // foo.sh node <<EOF var fs...

0

can not run shell script from command line on mac

To run any script you need to have executable write of that script. chmod 755 ./script_name.sh chmod 755 – gives you full permission. It gives only read and execute permission to everyone else.