Problem installing theme w/o Bedrock

on npm install i get the following error (npm-debug.log):

0 info it worked if it ends with ok 1 verbose cli [ 'c:\\Program Files (x86)\\nodejs\\node.exe', 1 verbose cli 'c:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'install' ] 2 info using npm@1.4.28 3 info using node@v0.10.32 4 verbose readDependencies using package.json deps 5 verbose install where, deps [ 'D:\\wamp\\www\\evo\\wp-content\\themes\\evolution', 5 verbose install [ 'bower', 5 verbose install 'grunt', 5 verbose install 'grunt-autoprefixer', 5 verbose install 'grunt-contrib-concat', 5 verbose install 'grunt-contrib-jshint', 5 verbose install 'grunt-contrib-less', 5 verbose install 'grunt-contrib-uglify', 5 verbose install 'grunt-contrib-watch', 5 verbose install 'grunt-modernizr', 5 verbose install 'grunt-wp-assets', 5 verbose install 'load-grunt-tasks', 5 verbose install 'time-grunt' ] ] 6 info preinstall roots@7.0.1 7 verbose readDependencies using package.json deps 8 verbose already installed skipping bower@>=1.3.9 D:\wamp\www\evo\wp-content\themes\evolution 9 verbose already installed skipping grunt@~0.4.5 D:\wamp\www\evo\wp-content\themes\evolution 10 verbose already installed skipping grunt-autoprefixer@~1.0.0 D:\wamp\www\evo\wp-content\themes\evolution 11 verbose already installed skipping grunt-contrib-concat@~0.5.0 D:\wamp\www\evo\wp-content\themes\evolution 12 verbose already installed skipping grunt-contrib-jshint@~0.10.0 D:\wamp\www\evo\wp-content\themes\evolution 13 verbose already installed skipping grunt-contrib-less@~0.11.3 D:\wamp\www\evo\wp-content\themes\evolution 14 verbose already installed skipping grunt-contrib-uglify@~0.5.0 D:\wamp\www\evo\wp-content\themes\evolution 15 verbose already installed skipping grunt-contrib-watch@~0.6.1 D:\wamp\www\evo\wp-content\themes\evolution 16 verbose already installed skipping grunt-modernizr@~0.5.2 D:\wamp\www\evo\wp-content\themes\evolution 17 verbose already installed skipping grunt-wp-assets@~0.2.6 D:\wamp\www\evo\wp-content\themes\evolution 18 verbose already installed skipping load-grunt-tasks@~0.6.0 D:\wamp\www\evo\wp-content\themes\evolution 19 verbose already installed skipping time-grunt@~0.4.0 D:\wamp\www\evo\wp-content\themes\evolution 20 silly resolved [] 21 info build D:\wamp\www\evo\wp-content\themes\evolution 22 verbose linkStuff [ false, false, false, 'D:\\wamp\\www\\evo\\wp-content\\themes' ] 23 info linkStuff roots@7.0.1 24 verbose linkBins roots@7.0.1 25 verbose linkMans roots@7.0.1 26 verbose rebuildBundles roots@7.0.1 27 verbose rebuildBundles [ '.bin', 27 verbose rebuildBundles 'bower', 27 verbose rebuildBundles 'grunt', 27 verbose rebuildBundles 'grunt-autoprefixer', 27 verbose rebuildBundles 'grunt-contrib-concat', 27 verbose rebuildBundles 'grunt-contrib-jshint', 27 verbose rebuildBundles 'grunt-contrib-less', 27 verbose rebuildBundles 'grunt-contrib-uglify', 27 verbose rebuildBundles 'grunt-contrib-watch', 27 verbose rebuildBundles 'grunt-modernizr', 27 verbose rebuildBundles 'grunt-wp-assets', 27 verbose rebuildBundles 'load-grunt-tasks', 27 verbose rebuildBundles 'time-grunt' ] 28 info install roots@7.0.1 29 info postinstall roots@7.0.1 30 verbose unsafe-perm in lifecycle true 31 info roots@7.0.1 Failed to exec postinstall script 32 error roots@7.0.1 postinstall: `node node_modules/bower/bin/bower install && grunt dev` 32 error Exit status 1 33 error Failed at the roots@7.0.1 postinstall script. 33 error This is most likely a problem with the roots package, 33 error not with npm itself. 33 error Tell the author that this fails on your system: 33 error node node_modules/bower/bin/bower install && grunt dev 33 error You can get their info via: 33 error npm owner ls roots 33 error There is likely additional logging output above. 34 error System Windows_NT 6.2.9200 35 error command "c:\\Program Files (x86)\\nodejs\\node.exe" "c:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" 36 error cwd D:\wamp\www\evo\wp-content\themes\evolution 37 error node -v v0.10.32 38 error npm -v 1.4.28 39 error code ELIFECYCLE 40 verbose exit [ 1, true ]

Thanks for looking into this.

@acub, have you tried sudo npm install?

nope.
as you might have noticed, i’m running wamp on a windows machine. however, i have specifically ran command shell as system administrator and i get the same exact error. since i don’t know how to copy paste from shell (not the typical webdev guru here, just a guy learning to do things the proper way) i have made a screenshot of it.

thank you for you advice

Try, sudo npm install. Looks like you didn’t run that on your command from the screen shot.

If it happens again, post the results from that as-well.

sudo is not recognized as an internal or external command, operable program or batch file

or, if ran into Ming:

sh.exe": sudo: command not found

as far as I understand, there is no sudo for windows 8, so the equivalent of it would be: “Run as administrator”? Please correct me if I’m wrong. Thank you.

later edit: apparently, I was wrong. there are a few solutions: sudowin and elevate. sudowin adds a sudo command to the shell and elevate provides similar functionality as sudo. I’ll try installing and get back here

sudowin wasn’t the answer, but after a bit of digging i found the root: even though wamp said it is, openssl was not active. apparently, it’s a known bug of wamp 2.4/32bit (it doesn’t modify the correct php.ini). after enabling openssl everything worked as expected.

thank you for your time.

This reply will help future users. In case of “npm install” be failed so you can use “npm install -g bower”.