blog.js
blog.js copied to clipboard
underscore missing
Error: Cannot find module './underscore/underscore'
at node.js:813:31
at findModulePath (node.js:744:5)
at node.js:766:7
at node.js:775:7
at [object Object].
Here is what you would have to do to resolve this problem, my particular solution requires underscore as a submodule, and in your case, i think you did not pull the submodule (a separate step to the git clone, not sure how to automate it, still learning git):
cd blog.js git submodule init git submodule update
It should work now :D
thank you, it works;)
Unfortunately I'm getting this when updating the submodules:
$ git submodule update fatal: reference is not a tree: 868c5c8d85b47f90502f4e470ea62740ec20b1f3 Unable to checkout '868c5c8d85b47f90502f4e470ea62740ec20b1f3' in submodule path 'underscore'
I am getting
$ git submodule update Cloning into underscore... remote: Counting objects: 503, done. remote: Compressing objects: 100% (166/166), done. remote: Total 503 (delta 336), reused 503 (delta 336) Receiving objects: 100% (503/503), 137.57 KiB | 122 KiB/s, done. Resolving deltas: 100% (336/336), done. fatal: reference is not a tree: 868c5c8d85b47f90502f4e470ea62740ec20b1f3 Unable to checkout '868c5c8d85b47f90502f4e470ea62740ec20b1f3' in submodule path 'underscore'
same error as nasko and shoan:
fatal: reference is not a tree: 868c5c8d85b47f90502f4e470ea62740ec20b1f3 Unable to checkout '868c5c8d85b47f90502f4e470ea62740ec20b1f3' in submodule path 'underscore'
I'm getting the same error too:
ip-192-168-0-3:blog.js loretoparisi$ git submodule init ip-192-168-0-3:blog.js loretoparisi$ git submodule update ip-192-168-0-3:blog.js loretoparisi$ git submodule update fatal: reference is not a tree: 868c5c8d85b47f90502f4e470ea62740ec20b1f3 Unable to checkout '868c5c8d85b47f90502f4e470ea62740ec20b1f3' in submodule path 'underscore'
Any idea?
SOLVED:
ip-192-168-0-3:blog.js loretoparisi$ git clone git://github.com/furtivefelon/underscore fatal: destination path 'underscore' already exists and is not an empty directory.
ip-192-168-0-3:blog.js loretoparisi$ rm -rf underscore/
ip-192-168-0-3:blog.js loretoparisi$ git clone git://github.com/furtivefelon/underscore Cloning into underscore... remote: Counting objects: 503, done. remote: Compressing objects: 100% (166/166), done. remote: Total 503 (delta 336), reused 503 (delta 336) Receiving objects: 100% (503/503), 137.57 KiB | 43 KiB/s, done. Resolving deltas: 100% (336/336), done.
ip-192-168-0-3:blog.js loretoparisi$ node blog.js Server at http://127.0.0.1:7001/
Enjoy!
Hello it doesnt work anymore the underscore repository is missing :( ..blog.js [master]> git submodule update Cloning into 'underscore'... fatal: remote error: Repository not found.