Errors creating new donejs app

DoneJS erros adding app

On Windows 7 Home Premium:

C:\4NT

node -v
v4.4.3

C:\4NT

npm -v
2.15.1

C:\4NT
donejs -V
0.9.2

I have looked at similar topics, but they are about errors later in the process.

I get a “Could not find local DoneJS binary” error when trying to add an application. It is looking in the newly created directory rather than the donejs installation directory.

I can understand enough to see that the value for “root” is wrong, but I haven’t seen anywhere that I should have affected that.

Command output follows.

From the Getting Started Guide:

K:\My Apps\JavaScript

donejs add app donejs-chat
Initializing new DoneJS application at K:\My Apps\JavaScript\donejs-chat
Installing donejs-cli

Error: Could not find local DoneJS binary (K:\My Apps\JavaScript\donejs-chat\node_modules.bin\donejs.cmd)

Looking in the new directory, not the install directory

at C:\Users\Owner\AppData\Roaming\npm\node_modules\donejs\lib\cli\run-binary

.js:21:25
at fulfilled (C:\Users\Owner\AppData\Roaming\npm\node_modules\donejs\node_m
odules\q\q.js:834:54)
at self.promiseDispatch.done (C:\Users\Owner\AppData\Roaming\npm\node_module
s\donejs\node_modules\q\q.js:863:30)
at Promise.promise.promiseDispatch (C:\Users\Owner\AppData\Roaming\npm\node

modules\donejs\node_modules\q\q.js:796:13)
at C:\Users\Owner\AppData\Roaming\npm\node_modules\donejs\node_modules\q\q.j
s:857:14
at runSingle (C:\Users\Owner\AppData\Roaming\npm\node_modules\donejs\node_mo
dules\q\q.js:137:13)
at flush (C:\Users\Owner\AppData\Roaming\npm\node_modules\donejs\node_module
s\q\q.js:125:13)
at nextTickCallbackWith0Args (node.js:420:9)
at process._tickCallback (node.js:349:13)

Thanks, we’ll check it out, sorry about this.

This is at least possibly related: https://github.com/donejs/cli/pull/58

Continuing to dig.

@dynalt what version of donejs-cli does it say you have?

K:\My Apps\JavaScript

donejs -V
0.9.2

Is this what you needed?

I don’t get anything for donejs-cli.

@dynalt In your package.json you should see donejs-cli listed under devDependencies.

I’m on OSX and I’m seeing a similar problem. After it fails, the donejs-chat folder only contains an empty node_modules folder.

The problem seems to be that donejs-cli needs root permission to install. I tried a couple different things but here is what finally worked:

sudo donejs add app donejs-chat
sudo chown -R username donejs-chat