Answers for "how to install node js in a folder"

8

node js create folder

var fs = require('fs');

const dir = './database/temp';
if (!fs.existsSync(dir)) {
	fs.mkdirSync(dir, {
		recursive: true
	});
}
Posted by: Guest on June-23-2020
1

install node_modules folder

npm install (with no args, in package dir)
Posted by: Guest on December-11-2020

Code answers related to "how to install node js in a folder"

Code answers related to "Javascript"

Browse Popular Code Answers by Language