Npm install problem after following recommenced steps

I am having a problem installing/getting sage running.

Been trying for a long time to so hopefully someone can help me solve what ever the problem is that i am having.

So I have read the following guide sage installation discussion however after checking I have the right requirements and running "npm cache clear && rm -rf node_modules && npm install " I get the following error/output from my terminal (mac os x 10.9.4).

Should I be using paste bin or something else when posting a lot of terminal output/code?

npm ERR! Darwin 13.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1

npm ERR! null == true
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <http://github.com/npm/npm/issues>
npm ERR! Darwin 13.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1

npm ERR! null == true
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <http://github.com/npm/npm/issues>
npm ERR! Darwin 13.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1

npm ERR! null == true
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <http://github.com/npm/npm/issues>
npm ERR! Darwin 13.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1

npm ERR! null == true
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <http://github.com/npm/npm/issues>

> gifsicle@2.0.1 postinstall /Applications/MAMP/htdocs/duoglobal/wp-    content/themes/duoglobal/node_modules/gulp-    imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle
> node lib/install.js

module.js:338
throw err;
      ^
Error: Cannot find module 'lodash'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/Applications/MAMP/htdocs/duoglobal/wp-     content/themes/duoglobal/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/vinyl-   fs/node_modules/glob-watcher/node_modules/gaze/node_modules/globule/lib/globule.js:14:9)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)

> pngquant-bin@2.0.3 postinstall /Applications/MAMP/htdocs/duoglobal/wp-    content/themes/duoglobal/node_modules/gulp-     imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin
> node lib/install.js

module.js:338
throw err;
      ^
Error: Cannot find module 'lodash'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/Applications/MAMP/htdocs/duoglobal/wp-    content/themes/duoglobal/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/vinyl-    fs/node_modules/glob-watcher/node_modules/gaze/node_modules/globule/lib/globule.js:14:9)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
npm WARN optional dep failed, continuing imagemin-gifsicle@4.1.0

> optipng-bin@2.0.4 postinstall /Applications/MAMP/htdocs/duoglobal/wp-  content/themes/duoglobal/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/optipng-bin
> node lib/install.js

module.js:338
throw err;
      ^
Error: Cannot find module 'lodash'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/Applications/MAMP/htdocs/duoglobal/wp-  content/themes/duoglobal/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/node_modules/globule/lib/globule.js:14:9)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
npm WARN optional dep failed, continuing imagemin-pngquant@4.0.0

> jpegtran-bin@2.0.2 postinstall /Applications/MAMP/htdocs/duoglobal/wp-content/themes/duoglobal/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin
> node lib/install.js

module.js:338
throw err;
      ^
Error: Cannot find module 'lodash'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/Applications/MAMP/htdocs/duoglobal/wp-content/themes/duoglobal/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/node_modules/globule/lib/globule.js:14:9)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
npm WARN optional dep failed, continuing imagemin-optipng@4.2.0
npm WARN optional dep failed, continuing imagemin-jpegtran@4.1.0

npm ERR! Please include the following file with any support request:
npm ERR!     /Applications/MAMP/htdocs/duoglobal/wp-content/themes/duoglobal/npm-debug.log

Can you try this? https://docs.npmjs.com/getting-started/fixing-npm-permissions

Hi Ben,

I have seen that article and tried option one which I think worked as I am not getting any EACCES error.

I ran “npm install jshint -g” and everything seemed fine as I got the following output:

/usr/local/bin/jshint -> /usr/local/lib/node_modules/jshint/bin/jshint
jshint@2.6.3 /usr/local/lib/node_modules/jshint
├── strip-json-comments@1.0.2
├── underscore@1.6.0
├── exit@0.1.2
├── shelljs@0.3.0
├── console-browserify@1.1.0 (date-now@0.1.4)
├── minimatch@1.0.0 (sigmund@1.0.0, lru-cache@2.5.0)
├── cli@0.6.5 (glob@3.2.11)
└── htmlparser2@3.8.2 (domelementtype@1.3.0, entities@1.0.0, domhandler@2.3.0, readable-stream@1.1.13, domutils@1.5.1)

This topic is now unlisted. It will no longer be displayed in any topic lists. The only way to access this topic is via direct link.