Sails: NPM ERR 'sailshq/lodash' is not in the npm registry

Created on 25 Dec 2016  路  9Comments  路  Source: balderdashy/sails

Sails version: 0.12.11
Node version: 0.10.25
NPM version: 1.4.28
Operating system: Ubuntu jessie/sid



Dear sir.
I'm just a first time user, so forgive me if this is so newbie.

I installed sails with the command and got the error as follow:

$ :~$ sudo npm -g install sails
|
[email protected] preinstall /usr/local/lib/node_modules/sails
node ./lib/preinstall_npmcheck.js

Sails.js Installation: Checking npm-version successful
npm ERR! 404 Not Found
npm ERR! 404
npm ERR! 404 'sailshq/lodash' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it

> npm ERR! 404 It was specified as a dependency of 'sails'

Since the direction was, You should bug the author to publish it,
I submitted this issue.

Happy Merry Christmas.

Most helpful comment

Hi @kocil ,
it is possible that you need to update your npm version > 2.7 ( see https://docs.npmjs.com/getting-started/scoped-packages).
To update npm, type (sudo) npm install -g npm on your console.

The package @sailshq/lodash is scoped.

All 9 comments

Hi @kocil! It looks like you missed a step or two when you created your issue. Please edit your comment (use the pencil icon at the top-right corner of the comment box) and fix the following:

  • Provide your Sails version
  • Provide your Node version
  • Provide your NPM version
  • Provide your Operating system
  • Verify "I am experiencing a concrete technical issue (aka a bug) with Sails (ideas and feature proposals should follow the guide for proposing features and enhancements (http://bit.ly/sails-feature-guide), which involves making a pull request). If you're not 100% certain whether it's a bug or not, that's okay--you may continue. The worst that can happen is that the issue will be closed and we'll point you in the right direction."
  • Verify "I am not asking a question about how to use Sails or about whether or not Sails has a certain feature (please refer to the documentation(http://sailsjs.org), or post on http://stackoverflow.com, our Google Group (http://bit.ly/sails-google-group) or our live chat (https://gitter.im/balderdashy/sails)."
  • Verify "I have tried all the following (if relevant) and my issue remains:"

As soon as those items are rectified, post a new comment (e.g. “Ok, fixed!”) below and we'll take a look. Thanks!

If you feel this message is in error, or you want to debate the merits of my existence (sniffle), please contact [email protected].

Ok, fixed!

Hi @kocil ,
it is possible that you need to update your npm version > 2.7 ( see https://docs.npmjs.com/getting-started/scoped-packages).
To update npm, type (sudo) npm install -g npm on your console.

The package @sailshq/lodash is scoped.

Your node v0.10.25 is outdated. It should be better to upgrade at least to v0.12.18 (but this version also will be dropped for support on December 31st 2016).
Here is list of changes between 0.10 and 0.12 https://github.com/nodejs/node/wiki/API-changes-between-v0.10-and-v0.12
If you are going to upgrade to v 4.7.0 LTS version, here is list of changes between 0.10 and v4 https://github.com/nodejs/node/wiki/API-changes-between-v0.10-and-v4

Thank you. :D
Solved !

Updating doesn't work to resolve the issue for me. Also did an apt-get update and apt-get upgrade already and updated npm after that again.

Alright it seems like there are no more updates on the normal way so i had to do a hack from the web to add a package-source for the newer versions.

For the case that you, the googler also have this issue do that:
(Debian)
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
and then
sudo apt-get install -y nodejs

Hm... still on v0.10.29
nvm... second run fixed it!

  • Provide your Sails version:
    Trying to install
  • Provide your Node version
    v8.10.0
  • Provide your NPM version
    6.14.7
  • Provide your Operating system
    Ubuntu 18.04.4 LTS

Tying to install By running:
$ npm -g install sails
Got The Error:

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@sailshq%2flodash - Not found
npm ERR! 404 
npm ERR! 404  '@sailshq/lodash@^3.10.2' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'sails'
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ashar/.npm/_logs/2020-08-06T09_49_40_832Z-debug.log

tried to update npm with:
npm i -g npm

I also tried to create a folder & add 'package.json' to it then: npm install @sailshq/lodash@^3.10.2 --save
but got the same error

I even tried to back to an older version like: npm -g install [email protected] but didn't work.
NOTE: any normal 'npm i -g' works fine and no problems happen

After un-installing & Re-installing npm I got the same version of npm and the same error

SOLVED.. Although the problem still existed after i re-installed NPM; It was Solved After I restarted The Device

Was this page helpful?
0 / 5 - 0 ratings