Author: Kavit

0

Terminal in Mac Recovery mode

It’s simple to change the SIP on MAC. Restart MAC  Upon restart press and hold Command (⌘) + R. You should see the screen like below where you can find, Utilities -> Terminal  

0

How to include all files with npm publish?

You can specify which files and directory to include using files property in the package.json. https://docs.npmjs.com/files/package.json#files npm publish includes files and directory specified in there.

0

xcode-select: error: tool ‘xcodebuild’ requires Xcode, but active developer directory ‘/Library/Developer/CommandLineTools’ is a command line tools instance

Solution: Type below command in your terminal sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer References: https://stackoverflow.com/questions/17980759/xcode-select-active-developer-directory-error https://github.com/nodejs/node-gyp/issues/569

0

Returning a value from a node child process

One can execute Linux, git shell commands from node script using node’s child process API like exec, execSync. But when you want to save the return value outside of the function scope, one must...

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”...