Docpad Installation of docpad run with skeleteon option - macos

I am using docpad run after following the installation instructions I was able to create a succesful result with docpad init, but when i Use run I get the following errors, and when i run docpad update as suggested i get another error.
I installed node with nvm and I thought npm comes with the install of node
git clone git://github.com/creationix/nvm.git ~/.nvm
printf "\n\n# NVM\nif [ -s ~/.nvm/nvm.sh ]; then\n\tNVM_DIR=~/.nvm\n\tsource ~/.nvm/nvm.sh\nfi" >> ~/.bashrc
NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh
nvm install v0.10.15
nvm alias default 0.10
nvm use 0.10
run error
warning: Your project's local DocPad version is 6.48.0 instead of 6.48.1, you may experience problems. Run `docpad update` to fix this.
info: DocPad listening to http://localhost:9778/ on directory /Users/anderskitson/sites/techbasics/out
info: LiveReload listening to new socket on channel /docpad-livereload
info: Generating...
warning: Something went wrong while rendering: styles/style.css.scss
error: Something went wrong with the action
error: An error occured:
Error: write EPIPE
at errnoException (net.js:901:11)
at Object.afterWrite (net.js:718:19)
events.js:72
throw er; // Unhandled 'error' event
^
Error: write after end
at writeAfterEnd (/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/node_modules/caterpillar/node_modules/readable-stream/lib/_stream_writable.js:146:12)
at Logger.Writable.write (/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/node_modules/caterpillar/node_modules/readable-stream/lib/_stream_writable.js:193:5)
at Logger.log (/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/node_modules/caterpillar/out/lib/caterpillar.js:191:10)
at Logger.log (/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/node_modules/caterpillar/out/lib/caterpillar.js:3:59)
at DocPad.log (/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/out/lib/docpad.js:1911:16)
at DocPad.log (/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/out/lib/docpad.js:4:59)
at forward (/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/out/lib/docpad.js:2990:14)
at /Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/out/lib/docpad.js:3Anderss-iMac:techbasics
update error
module.js:340
throw err;
^
Error: Cannot find module 'lazy-require'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/Users/anderskitson/sites/techbasics/node_modules/docpad/out/lib/docpad.js:11:15)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
An error occured within the child DocPad instance: exited with a non-zero status code
After running sudo npm install -g docpad#6
npm ERR! TypeError: options.uid should be a number
npm ERR! at ChildProcess.spawn (child_process.js:915:24)
npm ERR! at exports.spawn (child_process.js:715:9)
npm ERR! at runCmd_ (/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/npm/lib/utils/lifecycle.js:181:14)
npm ERR! at /Users/anderskitson/.nvm/v0.10.21/lib/node_modules/npm/lib/utils/lifecycle.js:157:7
npm ERR! at process._tickCallback (node.js:415:13)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR! System Darwin 13.0.0
npm ERR! command "node" "/Users/anderskitson/.nvm/v0.10.21/bin/npm" "install" "-g" "docpad#6"
npm ERR! cwd /Users/anderskitson/sites
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.12
> typechecker#2.0.6 preinstall /Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/node_modules/typechecker
> node ./cyclic.js
npm ERR! TypeError: options.uid should be a number
npm ERR! at ChildProcess.spawn (child_process.js:915:24)
npm ERR! at exports.spawn (child_process.js:715:9)
npm ERR! at runCmd_ (/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/npm/lib/utils/lifecycle.js:181:14)
npm ERR! at /Users/anderskitson/.nvm/v0.10.21/lib/node_modules/npm/lib/utils/lifecycle.js:157:7
npm ERR! at process._tickCallback (node.js:415:13)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR! System Darwin 13.0.0
npm ERR! command "node" "/Users/anderskitson/.nvm/v0.10.21/bin/npm" "install" "-g" "docpad#6"
npm ERR! cwd /Users/anderskitson/sites
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.12
npm http GET https://registry.npmjs.org/joe
npm http GET https://registry.npmjs.org/joe-reporter-console
npm http GET https://registry.npmjs.org/progress/0.1.0
npm http GET https://registry.npmjs.org/ansistyles
npm http GET https://registry.npmjs.org/ansicolors
npm http GET https://registry.npmjs.org/readable-stream
> taskgroup#3.2.3 preinstall /Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/node_modules/taskgroup
> node ./cyclic.js
npm ERR! TypeError: options.uid should be a number
npm ERR! at ChildProcess.spawn (child_process.js:915:24)
npm ERR! at exports.spawn (child_process.js:715:9)
npm ERR! at runCmd_ (/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/npm/lib/utils/lifecycle.js:181:14)
npm ERR! at /Users/anderskitson/.nvm/v0.10.21/lib/node_modules/npm/lib/utils/lifecycle.js:157:7
npm ERR! at process._tickCallback (node.js:415:13)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR! System Darwin 13.0.0
npm ERR! command "node" "/Users/anderskitson/.nvm/v0.10.21/bin/npm" "install" "-g" "docpad#6"
npm ERR! cwd /Users/anderskitson/sites
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.12
Running npm install -g docpad#6
Anderss-iMac:sites anderskitson$ npm install -g docpad#6
npm http GET https://registry.npmjs.org/docpad
npm http 304 https://registry.npmjs.org/docpad
npm ERR! error rolling back Error: EACCES, unlink '/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/.npmignore'
npm ERR! error rolling back docpad#6.53.4 { [Error: EACCES, unlink '/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/.npmignore']
npm ERR! error rolling back errno: 3,
npm ERR! error rolling back code: 'EACCES',
npm ERR! error rolling back path: '/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/.npmignore' }
npm ERR! Error: EACCES, unlink '/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/.npmignore'
npm ERR! { [Error: EACCES, unlink '/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/.npmignore']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/.npmignore' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 13.0.0
npm ERR! command "node" "/Users/anderskitson/.nvm/v0.10.21/bin/npm" "install" "-g" "docpad#6"
npm ERR! cwd /Users/anderskitson/sites
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.12
npm ERR! path /Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/.npmignore
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, unlink '/Users/anderskitson/.nvm/v0.10.21/lib/node_modules/docpad/.npmignore'
npm ERR! Error: EACCES, open 'npm-debug.log'
npm ERR! { [Error: EACCES, open 'npm-debug.log'] errno: 3, code: 'EACCES', path: 'npm-debug.log' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 13.0.0
npm ERR! command "node" "/Users/anderskitson/.nvm/v0.10.21/bin/npm" "install" "-g" "docpad#6"
npm ERR! cwd /Users/anderskitson/sites
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.12
npm ERR! path npm-debug.log
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open 'npm-debug.log'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/anderskitson/sites/npm-debug.log
npm ERR! not ok code 0

Related

Error when Trying to install aglio with npm

npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/aglio/node_modules/drafter/node_modules/protagonist/drafter/ext/sos/test/ext/Catch/projects/VS2008/TestCatch/TestCatch/TestCatch.vcproj'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR! System Linux 3.4.0+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "aglio"
npm ERR! cwd /mnt/c/Users/HEWLETT PACKARD'
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /usr/local/lib/node_modules/aglio/node_modules/drafter/node_modules/protagonist/drafter/ext/sos/test/ext/Catch/projects/VS2008/TestCatch/TestCatch/TestCatch.vcproj
npm ERR! fstream_path /usr/local/lib/node_modules/aglio/node_modules/drafter/node_modules/protagonist/drafter/ext/sos/test/ext/Catch/projects/VS2008/TestCatch/TestCatch/TestCatch.vcproj
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! weird error 1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /mnt/c/Users/HEWLETT PACKARD'/npm-debug.log
npm ERR! not ok code 0
I am not sure about this problem. I have tried, but it is useless.
If the above error is not readable, you can see the link here.
Reference to agilo.
Resolved:
I used nvm and successfully installed aglio using node v0.12.
Discussed on the issue of github aglio
https://github.com/danielgtaylor/aglio/issues/175

Yosemite 10.10.3 install Bower and Grunt ERROR

I've just updated to Yosemite 10.10.3 and tried to install Bower and Grunt, both when installing give me errors. I did overpass this error by using sudo before the install command but as soon as checking the version this is what the return message is: -bash: bower: command not found after a search did an echo $PATH that resulted as: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
Is there a solution to this? I've been looking around the web trying everything the i could find but haven't found a work around it. Thanks in advance for your help.
Bower Error:
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "bower"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! path /Users/albertoc/.node/bin/bower
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! Error: EACCES, unlink '/Users/albertoc/.node/bin/bower'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES, unlink '/Users/albertoc/.node/bin/bower']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/albertoc/.node/bin/bower' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! error rolling back Error: EACCES, unlink '/Users/albertoc/.node/bin/bower'
npm ERR! error rolling back at Error (native)
npm ERR! error rolling back { [Error: EACCES, unlink '/Users/albertoc/.node/bin/bower']
npm ERR! error rolling back errno: -13,
npm ERR! error rolling back code: 'EACCES',
npm ERR! error rolling back path: '/Users/albertoc/.node/bin/bower' }
npm ERR! Please include the following file with any support request:
npm ERR! /Users/albertoc/npm-debug.log
Grunt Error:
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "grunt-cli"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! path /Users/albertoc/.node/bin/grunt
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! Error: EACCES, unlink '/Users/albertoc/.node/bin/grunt'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES, unlink '/Users/albertoc/.node/bin/grunt']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/albertoc/.node/bin/grunt' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! error rolling back Error: EACCES, unlink '/Users/albertoc/.node/bin/grunt'
npm ERR! error rolling back at Error (native)
npm ERR! error rolling back { [Error: EACCES, unlink '/Users/albertoc/.node/bin/grunt']
npm ERR! error rolling back errno: -13,
npm ERR! error rolling back code: 'EACCES',
npm ERR! error rolling back path: '/Users/albertoc/.node/bin/grunt' }
npm ERR! Please include the following file with any support request:
npm ERR! /Users/albertoc/npm-debug.log
I had the same issue, updating to node v0.12.3 with the pkg installer from https://nodejs.org/download/ and running the command with sudo fixed it for me.
Hope it helps.
Cheers

Bower Installation Errors

Now I have installed Node and Npm and I run this command in terminal (yes I am on a mac):
npm install -g bower
Which follows with this output from the terminal:
npm http GET https://registry.npmjs.org/bower
npm http 304 https://registry.npmjs.org/bower
npm ERR! Error: EACCES, mkdir '/usr/local/lib/node_modules/bower'
npm ERR! { [Error: EACCES, mkdir '/usr/local/lib/node_modules/bower']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/local/lib/node_modules/bower',
npm ERR! fstream_type: 'Directory',
npm ERR! fstream_path: '/usr/local/lib/node_modules/bower',
npm ERR! fstream_class: 'DirWriter',
npm ERR! fstream_stack:
npm ERR! [ '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23',
npm ERR! '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:37:53',
npm ERR! 'Object.oncomplete (fs.js:107:15)' ] }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 13.0.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "bower"
npm ERR! cwd /Users/Superfunnytogo
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.24
npm ERR! path /usr/local/lib/node_modules/bower
npm ERR! fstream_path /usr/local/lib/node_modules/bower
npm ERR! fstream_type Directory
npm ERR! fstream_class DirWriter
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/usr/local/lib/node_modules/bower'
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:37:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/Superfunnytogo/npm-debug.log
npm ERR! not ok code 0
Device-365-352:~ Superfunnytogo$ npm install -g bower
npm http GET https://registry.npmjs.org/bower
npm http 304 https://registry.npmjs.org/bower
npm ERR! Error: EACCES, mkdir '/usr/local/lib/node_modules/bower'
npm ERR! { [Error: EACCES, mkdir '/usr/local/lib/node_modules/bower']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/local/lib/node_modules/bower',
npm ERR! fstream_type: 'Directory',
npm ERR! fstream_path: '/usr/local/lib/node_modules/bower',
npm ERR! fstream_class: 'DirWriter',
npm ERR! fstream_stack:
npm ERR! [ '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23',
npm ERR! '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:37:53',
npm ERR! 'Object.oncomplete (fs.js:107:15)' ] }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 13.0.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "bower"
npm ERR! cwd /Users/Superfunnytogo
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.24
npm ERR! path /usr/local/lib/node_modules/bower
npm ERR! fstream_path /usr/local/lib/node_modules/bower
npm ERR! fstream_type Directory
npm ERR! fstream_class DirWriter
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/usr/local/lib/node_modules/bower'
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:37:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/Superfunnytogo/npm-debug.log
npm ERR! not ok code 0
You need root access or permissions to install globally! Try :
sudo npm install -g bower
Much better than using sudo is setting a user level prefix. For example in ~/.npmrc set:
prefix = ${HOME}/npm-global
to use this folder for packages installed with -g.
Then you also need to set your PATH environment variable to include ${HOME}/npm-global/bin.
you shouldn't sudo bower right? I mean sudo npm install -g bower will work BUT here's the message I got:
Additional error details:
Since bower is a user command, there is no need to execute it with superuser permissions.
If you're having permission errors when using bower without sudo, please spend a few minutes learning more about how your system should work and make any necessary repairs.
http://www.joyent.com/blog/installing-node-and-npm
https://gist.github.com/isaacs/579814
You can however run a command with sudo using --allow-root option
If you've installed node/npm via Homebrew on OSX you may want to first run brew doctor and follow instructions before sudo-ing any system folders. In my case this brought up a nag about agreeing to an Xcode/iOS license:
Builds will fail! Agree to the license by opening Xcode.app or running:
xcodebuild -license
After doing that and running a brew update I was able to install Bower globally as expected.
I know that it's an old thread but I run into the issue recently after reinstalling Yosemite and xCode tools. In case anyone else gets stuck, what helped me was using the commands:
sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config
Following suggestion from the thread below:
https://github.com/bower/bower/issues/2262
Using sudo with npm is discouraged.
Look here https://stackoverflow.com/a/18277225/1857521 for a better solution to an almost identical problem.

Fail to install cordova with npm on Mac os x

Hi i'm trying to install cordova with npm with
sudo npm install -g cordova
And i have this error
npm ERR! Error: EACCES, symlink '../lib/node_modules/cordova/bin/cordova'
npm ERR! { [Error: EACCES, symlink '../lib/node_modules/cordova/bin/cordova']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '../lib/node_modules/cordova/bin/cordova' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 11.4.2
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "cordova"
npm ERR! cwd /Users/yannickghilardi
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.11
npm ERR! path ../lib/node_modules/cordova/bin/cordova
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, symlink '../lib/node_modules/cordova/bin/cordova'
npm ERR! Error: EACCES, open 'npm-debug.log'
npm ERR! { [Error: EACCES, open 'npm-debug.log'] errno: 3, code: 'EACCES', path: 'npm-debug.log' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 11.4.2
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "cordova"
npm ERR! cwd /Users/yannickghilardi
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.11
npm ERR! path npm-debug.log
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open 'npm-debug.log'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/yannickghilardi/npm-debug.log
npm ERR! not ok code 0
Then i tried to use this command
sudo chown -R yannickghilardi /usr/local/lib/node_modules
And i have this error message
Operation not permitted
Is there a solution to this problem?
Thanks in advance
Just now i solved this issue. Execute this command by going into to the root folder.
Destination folder -- > /usr/local/lib/node_modules/ and type the command sudo npm install -g cordova
I tried installing using the command npm i -g cordova-res --unsafe-perm. It worked fine.

Tried to install topoJSON and got this

Caseys-MacBook-Pro:~ casey$ npm install -g topojson
npm http GET https://registry.npmjs.org/topojson
npm http 200 https://registry.npmjs.org/topojson
npm http GET https://registry.npmjs.org/topojson/-/topojson-1.1.4.tgz
npm http 200 https://registry.npmjs.org/topojson/-/topojson-1.1.4.tgz
npm ERR! Error: EACCES, mkdir '/usr/local/lib/node_modules/topojson'
npm ERR! { [Error: EACCES, mkdir '/usr/local/lib/node_modules/topojson']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/local/lib/node_modules/topojson',
npm ERR! fstream_type: 'Directory',
npm ERR! fstream_path: '/usr/local/lib/node_modules/topojson',
npm ERR! fstream_class: 'DirWriter',
npm ERR! fstream_stack:
npm ERR! [ '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23',
npm ERR! '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:37:53',
npm ERR! 'Object.oncomplete (fs.js:107:15)' ] }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 12.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "topojson"
npm ERR! cwd /Users/casey
npm ERR! node -v v0.10.11
npm ERR! npm -v 1.2.30
npm ERR! path /usr/local/lib/node_modules/topojson
npm ERR! fstream_path /usr/local/lib/node_modules/topojson
npm ERR! fstream_type Directory
npm ERR! fstream_class DirWriter
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/usr/local/lib/node_modules/topojson'
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:37:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/casey/npm-debug.log
npm ERR! not ok code 0
I have no idea what to do or how to fix this.
I think that I fixed by using sudo.
I also fixed it by
sudo npm install -g topojson
All the process were then successful.
Afterwhat my
topojson -o output.json input.shp
however, didn't worked.
Did topojson worked fine after your sudo install ?

Resources