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.
$ :~$ sudo npm -g install sails
|
[email protected] preinstall /usr/local/lib/node_modules/sails
node ./lib/preinstall_npmcheck.jsSails.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.
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:
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!
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
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 npmon your console.The package
@sailshq/lodashis scoped.