Skip to content
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

ndt install fails when trying to get property force on undefined. #6

Open
gene-pavlovsky opened this issue Sep 5, 2016 · 2 comments

Comments

@gene-pavlovsky
Copy link

Created a dt.json using ndt --generate, then trying ndt install, but then it fails:

# ndt install
Failed to install service [TypeError: Cannot read property 'force' of undefined]

After removing this line:

lib/actions/install.js
22:      !that.force

It worked. For some reason, that appears to be undefined...

@nullivex
Copy link
Owner

nullivex commented Sep 5, 2016

@gene-pavlovsky Thanks for the report. I will take a look into this. I have gotten this error a few times myself but it usually had to do with the file already existing where you were trying to do the install.

There is supposed to be an ndt install --force to overwrite an existing link in the /service folder.

I welcome a patch if you can make this work properly.

@gene-pavlovsky
Copy link
Author

I got the meaning of --force option, just for some reason it didn't work. I just did rm -rf dt; rm /service/my-service and re-ran ndt install. With the force handling code I mentioned removed, it worked.
I'd love to check it out more, but I'm working on a project with a tight deadline now, and since the install worked, I can just go on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants