Problems install Ghost 0.5.0 - npm WARN unmet dependency - node.js

I get the follow error when trying to install Ghost on ubuntu,
Node version
node -v
v0.10.22
NPM version
npm -v
1.4.21
Install output
sudo npm install --production
npm WARN package.json express#4.8.3 No README data
npm WARN package.json moment#2.4.0 No README data
npm WARN package.json mysql#2.1.1 No README data
npm WARN unmet dependency /usr/share/nginx/www/lm-ghost-0.5/node_modules/bookshelf requires semver#'~2.3.0' but will load
npm WARN unmet dependency /usr/share/nginx/www/lm-ghost-0.5/node_modules/semver,
npm WARN unmet dependency which is version 2.2.1
npm WARN unmet dependency /usr/share/nginx/www/lm-ghost-0.5/node_modules/knex requires semver#'^2.3.0' but will load
npm WARN unmet dependency /usr/share/nginx/www/lm-ghost-0.5/node_modules/semver,
npm WARN unmet dependency which is version 2.2.1
Recommendations appreciated!

I've just done a download of the latest official release from here:
https://github.com/TryGhost/Ghost/releases
Then I've run npm install --production and the only warning I get is this:
npm WARN engine html-to-text#0.1.0: wanted: {"node":"~0.8.0"} (current: {"node":"0.10.30","npm":"1.4.23"})
Are you sure you've downloaded the latest release version and not the github repository instead or another version?
Try to install ghost from that link in a clean directory, without sudo and see if it's still giving you warning.

sudo npm cache clean -f
sudo npm install -g n
sudo n stable
//This will install the latest stable version or you can go to https://nodejs.org for the latest 'recommended for most users' version and use:
sudo n 4.6.0

Related

Unmet dependency error when trying to install react-native-cli using npm

When I run
npm install -g react-native-cli
I see this error
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/read-installed/node_modules/readdir-scoped-modules requires graceful-fs#'^4.1.2' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/read-installed/node_modules/graceful-fs,
npm WARN unmet dependency which is version 3.0.8
I've tried updating graceful-fs by
npm update -g graceful-fs
Reacts website suggests using sudo if you have a permission error. This error doesn't seem permission related but if it is, I can certainly run sudo.
I'm an npm and node noob so please ask for any more info that will help.
I ran npm update -g and then was able to install the React CLI.

Cant install ionic framework - Dependency error

I am trying to install ionic framework on my Ubuntu 14.04 Linux system. I already installed the nodejs,npm,cordova. I use the command 'npm install -g ionic' in my terminal and everytime I get the following error
npm http GET https://registry.npmjs.org/ionic
npm http 304 https://registry.npmjs.org/ionic
npm WARN unmet dependency /home/dineshadhithya/node_modules/ionic/node_modules/connect/node_modules/finalhandler requires debug#'1.0.4' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /home/dineshadhithya/node_modules/ionic/node_modules/request/node_modules/ form-data requires combined-stream#'~0.0.4' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
ionic#1.7.14 node_modules/ionic
This seemed to have solved the problem for many: Why does npm install say I have unmet dependencies?
remove node_modules using rm -rf node_modules/
run npm cache clean

Error while installing generator-mean-seed

I am trying to follow the instructions given on https://www.npmjs.com/package/generator-mean-seed
When i try to run "sudo npm install -g generator-mean-seed" i get this error
npm install -g generator-mean-seed
npm WARN deprecated lodash#1.3.1: lodash#<2.0.0 is no longer maintained. Upgrade to lodash#^3.0.0
npm WARN deprecated CSSselect#0.7.0: the module is now available as 'css-select'
npm WARN deprecated CSSwhat#0.4.7: the module is now available as 'css-what'
npm WARN deprecated lodash#1.2.1: lodash#<2.0.0 is no longer maintained. Upgrade to lodash#^3.0.0
/usr/local/lib
├── generator-mean-seed#1.1.26
└── UNMET PEER DEPENDENCY yo#>=1.0.0
npm WARN generator-mean-seed#1.1.26 requires a peer of yo#>=1.0.0 but none was installed.
It says that i need yo installed with version > 1.0.0 but i already have that installed
yo --version
1.6.0
Any idea on what i am doing wrong or any clue to fix this?
I had the same problem ... the reason seems that the installation of peer dependencies changed in later version of npm. As a workaround, include yo when installing generator-mean-seed (it doesn't matter it's already installed):
$ sudo npm install -g yo generator-mean-seed
this way, generator-mean-seed will install correctly:
$ sudo npm install -g yo generator-mean-seed
npm WARN deprecated lodash#1.3.1: lodash#<3.0.0 is no longer maintained. Upgrade to lodash#^4.0.0.
npm WARN deprecated CSSselect#0.7.0: the module is now available as 'css-select'
npm WARN deprecated CSSwhat#0.4.7: the module is now available as 'css-what'
npm WARN deprecated lodash#1.2.1: lodash#<3.0.0 is no longer maintained. Upgrade to lodash#^4.0.0.
npm WARN deprecated graceful-fs#3.0.8: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs#^4.0.0 as soon as possible.
npm WARN deprecated npmconf#2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm
/usr/local/bin/yo -> /usr/local/lib/node_modules/yo/lib/cli.js
> yo#1.7.0 postinstall /usr/local/lib/node_modules/yo
> yodoctor

npm ERR! cb<> never called! - browserSync

I'm new to grunt and am hitting a wall with BrowserSync. Whether I try to install it globally or for a particular folder
npm install -g grunt-browser-sync
Or
npm install grunt-browser-sync --save-dev
I get the same error: npm ERR! cb<> never called! I've tried npm cache clear and deleting the node_modules folder and runing npm install again but nothing seems to help.
Watch, Compass, and Uglify are all working. I just can't get browserSync to install successfully.
Here is a copy/paste of commands I just entered and the results.
D:\xampp\htdocs\testing>npm install grunt-browser-sync --save-dev
npm WARN package.json testing#1.0.0 No repository field.
npm WARN package.json testing#1.0.0 No README data
npm WARN unmet dependency D:\xampp\htdocs\testing\node_modules\socket.io\node_mo
dules\engine.io requires debug#'1.0.3' but will load
npm WARN unmet dependency D:\xampp\htdocs\testing\node_modules\socket.io\node_mo
dules\debug,
npm WARN unmet dependency which is version 0.7.4
grunt-browser-sync#1.5.3 node_modules\grunt-browser-sync
└── browser-sync#1.9.0 (emitter-steward#0.0.1, easy-extender#2.2.0, opt-merger#1
.1.0, commander#2.6.0, opn#1.0.1, object-path#0.8.1, minimist#1.1.0, eazy-logger
#2.1.0, ua-parser-js#0.7.3, browser-sync-client#1.0.1, lodash#2.4.1, dev-ip#0.1.
7, portscanner-plus#0.2.0, connect#3.3.4, serve-index#1.6.0, tfunk#3.0.0, serve-
static#1.8.0, glob-watcher#0.0.7, localtunnel#1.5.0, resp-modifier#1.0.1, foxy#7
.1.0)
D:\xampp\htdocs\testing>grunt browserSync
Running "browserSync:bsFiles" (browserSync) task
Warning: Cannot find module 'base64id' Use --force to continue.
Aborted due to warnings.
D:\xampp\htdocs\testing>
Please advise.
following sskips suggestion below I got the following error:
D:\xampp\htdocs\testing>npm install base64id
npm WARN package.json testing#1.0.0 No repository field.
npm WARN package.json testing#1.0.0 No README data
npm WARN unmet dependency D:\xampp\htdocs\testing\node_modules\socket.io\node_mo
dules\engine.io requires debug#'1.0.3' but will load
npm WARN unmet dependency D:\xampp\htdocs\testing\node_modules\socket.io\node_mo
dules\debug,
npm WARN unmet dependency which is version 0.7.4
base64id#0.1.0 node_modules\base64id
D:\xampp\htdocs\testing>
you lose something.
install base64id as below, then try again
npm install base64id

npm reports "requires (one version)' but will load (another version)"

Likely after cordove install with npm I got warning messages almost for every npm operations "requires colors#'>=0.6.0' but will load .. color"
D:\Workspaces\Enide-Studio-2014\OpenWith.js>npm i . -g
C:\Users\weibl\AppData\Roaming\npm\openwith -> C:\Users\weibl\AppData\Roaming\npm\node_modules\openwith\bin\openwith.js
npm WARN unmet dependency C:\Users\weibl\AppData\Roaming\npm\node_modules\phonegap\node_modules\cordova requires colors#'>=0.6.0' but will load
npm WARN unmet dependency C:\Users\weibl\AppData\Roaming\npm\node_modules\phonegap\node_modules\colors,
npm WARN unmet dependency which is version 0.6.0-1
npm WARN unmet dependency C:\Users\weibl\AppData\Roaming\npm\node_modules\phonegap\node_modules\node-static requires colors#'>=0.6.0' but will load
npm WARN unmet dependency C:\Users\weibl\AppData\Roaming\npm\node_modules\phonegap\node_modules\colors,
npm WARN unmet dependency which is version 0.6.0-1
openwith#0.11.0 C:\Users\weibl\AppData\Roaming\npm\node_modules\openwith
How to fix such npm errors?
As Andrew hinted, solution was to
npm -g update colors
Clean out the node-Modules folder and re-run:
npm install
At first, delete the phonegap\ folder in the location C:\Users\weibl\AppData\Roaming\npm\node_modules\. Of course, specific location will be different for others.
Then, proceed for any npm install/update command you want.

Resources