-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
profile.json file not found error #2
Comments
@dawsonbotsford I want to store that file with all the other files in the package but I can't figure out how to access it. Do you know how? Can you tell me if creepin is located at /usr/lib/nodejs/lib/node_modules/creepin |
Where my Look at like 57 and onward here try {
fs.statSync(path.join(__dirname, '/config.json'));
const username = JSON.parse(fs.readFileSync('config.json', 'utf-8')).username;
openPackages(username);
} catch (err) {
inquirer.prompt([
{
type: 'input',
name: 'username',
message: 'What\'s your GitHub username?'
}], function (answers) {
fs.writeFileSync(path.join(__dirname, '/config.json'), `{"username": "${answers.username}"}`);
openPackages(answers.username);
});
} It's all about the |
@dawsonbotsford Finally! that's all I've been looking for is __dirname and it wasn't mentioned in any of the posts pertaining to where the module is located |
sist output:
OS
Darwin
x64
node
npm -v
: 3.6.0node --version
: v5.7.1shell
uname
: Darwinecho $SHELL
: /bin/zshecho $TERM
: xterm-256colorecho $TERM_PROGRAM
: iTerm.appTime created: Thu Mar 24 2016 16:41:28 GMT-0600 (MDT)
The text was updated successfully, but these errors were encountered: