Cannot setup donejs on application


#1

I am tring DoneJS out for hte first time. I already had an app started in html/javascript but donejs looked good.

So i followed all steps and installed GIT GUI.

Anyway wen installing DoneJS on the application after it asks me what type of licence I want it fails saying:

Err - cloning into bare respository c:/…

then
Err - fatal unable to connect to github.com (ive set the proxy for node.js in command prompt - is this how I do it)

Any ideas.
Ken


#2

Hi @klarkin,

I’m not sure why something would be cloned when creating a new app… could you copy + paste everything in your command line, including the commands you ran?

Here’s an example of what it looks like for me
donejs:Desktop chasen$ donejs add app donejs-chat
Initializing new DoneJS application at /Users/chasen/Desktop/donejs-chat
Installing donejs-cli

> spawn-sync@1.0.15 postinstall /Users/chasen/Desktop/donejs-chat/node_modules/spawn-sync
> node postinstall

+ donejs-cli@1.0.2
added 91 packages in 4.943s
Installing generator-donejs@^1.0.0
+ generator-donejs@1.0.7
added 152 packages in 7.271s
? Project name donejs-chat
? Project main folder src
? Description An awesome DoneJS app
? Project homepage url 
? GitHub username or organization 
? Author's Name 
? Author's Email 
? Author's Homepage 
? Application keywords 
? NPM version used 5
? Your email (optional): 
? Your website (optional): 
? Which license do you want to use? MIT
   create package.json
   create README.md
   create .gitignore
   create build.js
   create production.html
   create development.html
   create test.html
   create src/app.js
   create src/index.stache
   create src/index.md
   create src/styles.less
   create src/test.js
   create src/models/fixtures/fixtures.js
   create src/models/test.js
   create LICENSE

> dtrace-provider@0.8.5 install /Users/chasen/Desktop/donejs-chat/node_modules/dtrace-provider
> node scripts/install.js


> fsevents@1.1.2 install /Users/chasen/Desktop/donejs-chat/node_modules/fsevents
> node install

[fsevents] Success: "/Users/chasen/Desktop/donejs-chat/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile

> websocket@1.0.25 install /Users/chasen/Desktop/donejs-chat/node_modules/websocket
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/bufferutil.node
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/validation.node
added 776 packages in 35.241s

#3

C:\repo01\GBE_ROOT_WEB\GBE.ProjectName.Website\trunk\src\ProjectName.Website>donejs add app ProjectName.Website
Initializing new DoneJS application at C:\repo01\GBE_ROOT_WEB\GBE.ProjectName.Website\trunk\src\ProjectName.Website\ProjectName.Website
Installing donejs-cli
els-gaming-website@0.0.0 C:\repo01\GBE_ROOT_WEB\GBE.ProjectName.Website\trunk\src\ProjectName.Website\ProjectName.Website
`-- donejs-cli@1.0.2

? Project main folder src
? NPM version used 3
? What’s your name: klarkin
? Your email (optional):
? Your website (optional):
? Which license do you want to use? MIT
conflict package.json
? Overwrite package.json? overwrite
force package.json
identical README.md
identical .gitignore
identical build.js
identical production.html
identical development.html
identical test.html
identical src\app.js
identical src\index.stache
identical src\index.md
identical src\styles.less
identical src\test.js
identical src\models\fixtures\fixtures.js
identical src\models\test.js
conflict LICENSE
? Overwrite LICENSE? overwrite
force LICENSE
npm ERR! git clone --template=C:\Users\klarkin.GBECORP\AppData\Roaming\npm-cache_git-remotes_templates --mirror git://github.com/gwicke/web-streams-polyfill.git C:\Users\klarkin.GBECORP\AppData\Roaming\npm-cache_git-remotes\git-github-com-gwicke-web-streams-polyfill-git-spec-performance-improvements-e8518d07: Cloning into bare repository ‘C:\Users\klarkin.GBECORP\AppData\Roaming\npm-cache_git-remotes\git-github-com-gwicke-web-streams-polyfill-git-spec-performance-improvements-e8518d07’…
npm ERR! git clone --template=C:\Users\klarkin.GBECORP\AppData\Roaming\npm-cache_git-remotes_templates --mirror git://github.com/gwicke/web-streams-polyfill.git C:\Users\klarkin.GBECORP\AppData\Roaming\npm-cache_git-remotes\git-github-com-gwicke-web-streams-polyfill-git-spec-performance-improvements-e8518d07: fatal: unable to connect to github.com:
npm ERR! git clone --template=C:\Users\klarkin.GBECORP\AppData\Roaming\npm-cache_git-remotes_templates --mirror git://github.com/gwicke/web-streams-polyfill.git C:\Users\klarkin.GBECORP\AppData\Roaming\npm-cache_git-remotes\git-github-com-gwicke-web-streams-polyfill-git-spec-performance-improvements-e8518d07: github.com[0: 192.30.253.113]: errno=Invalid argument
npm ERR! git clone --template=C:\Users\klarkin.GBECORP\AppData\Roaming\npm-cache_git-remotes_templates --mirror git://github.com/gwicke/web-streams-polyfill.git C:\Users\klarkin.GBECORP\AppData\Roaming\npm-cache_git-remotes\git-github-com-gwicke-web-streams-polyfill-git-spec-performance-improvements-e8518d07: github.com[1: 192.30.253.112]: errno=Invalid argument
npm ERR! Windows_NT 10.0.10240
npm ERR! argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “–loglevel” “error” "install"
npm ERR! node v6.11.4
npm ERR! npm v3.10.10
npm ERR! code 128

npm ERR! Command failed: git -c core.longpaths=true clone --template=C:\Users\klarkin.GBECORP\AppData\Roaming\npm-cache_git-remotes_templates --mirror git://github.com/gwicke/web-streams-polyfill.git C:\Users\klarkin.GBECORP\AppData\Roaming\npm-cache_git-remotes\git-github-com-gwicke-web-streams-polyfill-git-spec-performance-improvements-e8518d07
npm ERR! Cloning into bare repository ‘C:\Users\klarkin.GBECORP\AppData\Roaming\npm-cache_git-remotes\git-github-com-gwicke-web-streams-polyfill-git-spec-performance-improvements-e8518d07’…
npm ERR! fatal: unable to connect to github.com:
npm ERR! github.com[0: 192.30.253.113]: errno=Invalid argument
npm ERR! github.com[1: 192.30.253.112]: errno=Invalid argument
npm ERR!
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! C:\repo01\GBE_ROOT_WEB\GBE.ProjectName.Website\trunk\src\ProjectName.Website\ProjectName.Website\npm-debug.log
events.js:165
throw err;
^

Error: Uncaught, unspecified “error” event. (1)
at constructor.emit (events.js:163:17)
at Immediate. (C:\repo01\GBE_ROOT_WEB\GBE.ProjectName.Website\trunk\src\ProjectName.Website\ProjectName.Website\node_modules\yeoman-generator\lib\index.js:424:16)
at runCallback (timers.js:672:20)
at tryOnImmediate (timers.js:645:5)
at processImmediate [as _immediateCallback] (timers.js:617:5)

Command C:\repo01\GBE_ROOT_WEB\GBE.ProjectName.Website\trunk\src\ProjectName.Website\ProjectName.Website\node_modules\.bin\donejs.cmd did not complete successfully


#4

Any update on this. I tried doing this on my home pac with no proxy or firewall etc and still same issue.


#5

Hi @klarkin, this section of the output makes me think it’s an npm issue, not a DoneJS issue:

npm ERR! Command failed: git -c core.longpaths=true clone --template=C:\Users\klarkin.GBECORP\AppData\Roaming\npm-cache_git-remotes_templates --mirror git://github.com/gwicke/web-streams-polyfill.git C:\Users\klarkin.GBECORP\AppData\Roaming\npm-cache_git-remotes\git-github-com-gwicke-web-streams-polyfill-git-spec-performance-improvements-e8518d07
npm ERR! Cloning into bare repository ‘C:\Users\klarkin.GBECORP\AppData\Roaming\npm-cache_git-remotes\git-github-com-gwicke-web-streams-polyfill-git-spec-performance-improvements-e8518d07’…
npm ERR! fatal: unable to connect to github.com:
npm ERR! github.com[0: 192.30.253.113]: errno=Invalid argument
npm ERR! github.com[1: 192.30.253.112]: errno=Invalid argument
npm ERR!
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! C:\repo01\GBE_ROOT_WEB\GBE.ProjectName.Website\trunk\src\ProjectName.Website\ProjectName.Website\npm-debug.log

Since you’re using npm 3, it might be worth running npm cache clean. Also, I would give npm 5 a try (npm i -g npm@5) and see if you get anything different; otherwise, filing an issue with them might be your best bet.