Giter Site home page Giter Site logo

Comments (16)

celogeek avatar celogeek commented on August 22, 2024 12

When you check the configuration, the repository is the default.
But if you create the package.json, then the .npmrc is take in account.

So to make it work, you need to switch the process 03 Start a Project and 02 Login.

First, create a project, then your npmrc will be used properly !

from how-to-npm.

YannHulot avatar YannHulot commented on August 22, 2024

I should add that I am running nodeJs on a cloud9 server.

from how-to-npm.

caal-15 avatar caal-15 commented on August 22, 2024

Getting the same error here (Local installation of node)

from how-to-npm.

bruno-fs avatar bruno-fs commented on August 22, 2024

also having this issue on cloud9

npm ERR! Linux 4.2.0-c9
npm ERR! argv "/home/ubuntu/.nvm/versions/node/v4.1.1/bin/node" "/home/ubuntu/.nvm/versions/node/v4.1.1/bin/npm" "adduser"
npm ERR! node v4.1.1
npm ERR! npm  v3.7.1
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! syscall connect

npm ERR! Error: connect ECONNREFUSED 127.0.0.1:15443
npm ERR!     at Object.exports._errnoException (util.js:837:11)
npm ERR!     at exports._exceptionWithHostPort (util.js:860:20)
npm ERR!     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1060:14)
npm ERR!  { [Error: connect ECONNREFUSED 127.0.0.1:15443]
npm ERR!   code: 'ECONNREFUSED',
npm ERR!   errno: 'ECONNREFUSED',
npm ERR!   syscall: 'connect',
npm ERR!   address: '127.0.0.1',
npm ERR!   port: 15443 }
npm ERR! 
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly.  See: 'npm help config'

npm ERR! Please include the following file with any support request:
npm ERR!     /home/ubuntu/workspace/how-to-npm/npm-debug.log

from how-to-npm.

huwd avatar huwd commented on August 22, 2024

I had a similar issue though not on C9.io...

I was getting npm ERR! Unknown error while authenticating : -/user/org.couchdb.user:<username>

Turns out that my username was already taken but the error message wasn't helpful. I ended up going to the npm website and signing up there - with a now modified username - and then used the npm login command from terminal to complete the challenge.

Hope that helps someone.

from how-to-npm.

caal-15 avatar caal-15 commented on August 22, 2024

@huw remember that it should be a test environment and you shouldn't have
to create a Real npm account.
On Feb 12, 2016 6:46 AM, "huw" [email protected] wrote:

I had a similar issue though not on C9.io...

I was getting npm ERR! Unknown error while authenticating :
-/user/org.couchdb.user:

Turns out that my username was already taken but the error message wasn't
helpful. I ended up going to the npm website https://www.npmjs.com and
signing up there - with a now modified username - and then used the npm
login command from terminal to complete the challenge.

Hope that helps someone.


Reply to this email directly or view it on GitHub
#55 (comment).

from how-to-npm.

huwd avatar huwd commented on August 22, 2024

O_O oh... err... oops. Time to backtrack.

from how-to-npm.

rileygelwicks avatar rileygelwicks commented on August 22, 2024

I had the same error because the user I was creating was the same name as my logged in user on my machine. Once I used a different name it worked.

from how-to-npm.

adsnjhfyeqw231eas avatar adsnjhfyeqw231eas commented on August 22, 2024

i am facing this error:

npm ERR! Linux 4.2.0-c9
npm ERR! argv "/home/ubuntu/.nvm/versions/node/v4.3.2/bin/node" "/home/ubuntu/.nvm/versions/node/v4.3.2/bin/npm" "adduser"
npm ERR! node v4.3.2
npm ERR! npm v3.8.1
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! syscall connect

npm ERR! Error: connect ECONNREFUSED 127.0.0.1:15443
npm ERR! at Object.exports._errnoException (util.js:870:11)
npm ERR! at exports._exceptionWithHostPort (util.js:893:20)
npm ERR! at TCPConnectWrap.afterConnect as oncomplete
npm ERR! { [Error: connect ECONNREFUSED 127.0.0.1:15443]
npm ERR! code: 'ECONNREFUSED',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! syscall: 'connect',
npm ERR! address: '127.0.0.1',
npm ERR! port: 15443 }
npm ERR!
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly. See: 'npm help config'

npm ERR! Please include the following file with any support request:
npm ERR! /home/ubuntu/workspace/npmproject1/npm-debug.log

how to resolve this? I added entirely new user with new username and password and new email but exactly same error!

from how-to-npm.

legend911 avatar legend911 commented on August 22, 2024

I have been getting that same error for weeks now... I don't know what to do. I am also on Cloud 9. Do they just have a problem?

from how-to-npm.

maddymaster avatar maddymaster commented on August 22, 2024

I am also facing the same problem

maddymaster:~/workspace/myproject $ npm adduser
Username: maddymaster
Password:
Email: (this IS public) [email protected]
npm ERR! Linux 4.2.0-c9
npm ERR! argv "/home/ubuntu/.nvm/versions/node/v4.3.2/bin/node" "/home/ubuntu/.nvm/versions/node/v4.3.2/bin/npm" "adduser"
npm ERR! node v4.3.2
npm ERR! npm v3.8.1
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! syscall connect

npm ERR! Error: connect ECONNREFUSED 127.0.0.1:15443
npm ERR! at Object.exports._errnoException (util.js:870:11)
npm ERR! at exports._exceptionWithHostPort (util.js:893:20)
npm ERR! at TCPConnectWrap.afterConnect as oncomplete
npm ERR! { [Error: connect ECONNREFUSED 127.0.0.1:15443]
npm ERR! code: 'ECONNREFUSED',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! syscall: 'connect',
npm ERR! address: '127.0.0.1',
npm ERR! port: 15443 }
npm ERR!
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly. See: 'npm help config'

npm ERR! Please include the following file with any support request:
npm ERR! /home/ubuntu/workspace/myproject/npm-debug.log

and this is my package.json
{
"name": "npm",
"version": "1.0.1",
"description": "my new test",
"main": "index.js",
"scripts": {
"test": "node test.js"
},
"author": "maddymaster",
"license": "ISC",
"dependencies": {
"@linclark/pkg": "^1.0.2"
},
"repository": ""
}

what can be the problem? I have tried everything including starting over again on how-to-npm with a completely new user no go.

from how-to-npm.

legend911 avatar legend911 commented on August 22, 2024

I solved this by starting a new cloud9 workspace for node.js and comparing things. It turned out that my package.json file had some major changes in it after doing one of the npm solutions.

You can also just pull your repository of work into a new cloud9 workspace and delete your old package.json file.

On Mar 17, 2016, at 08:02, Maddy [email protected] wrote:

I am also facing the same problem

maddymaster:~/workspace/myproject $ npm adduser
Username: maddymaster
Password:
Email: (this IS public) [email protected]
npm ERR! Linux 4.2.0-c9
npm ERR! argv "/home/ubuntu/.nvm/versions/node/v4.3.2/bin/node" "/home/ubuntu/.nvm/versions/node/v4.3.2/bin/npm" "adduser"
npm ERR! node v4.3.2
npm ERR! npm v3.8.1
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! syscall connect

npm ERR! Error: connect ECONNREFUSED 127.0.0.1:15443
npm ERR! at Object.exports._errnoException (util.js:870:11)
npm ERR! at exports._exceptionWithHostPort (util.js:893:20)
npm ERR! at TCPConnectWrap.afterConnect as oncomplete
npm ERR! { [Error: connect ECONNREFUSED 127.0.0.1:15443]
npm ERR! code: 'ECONNREFUSED',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! syscall: 'connect',
npm ERR! address: '127.0.0.1',
npm ERR! port: 15443 }
npm ERR!
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly. See: 'npm help config'

npm ERR! Please include the following file with any support request:
npm ERR! /home/ubuntu/workspace/myproject/npm-debug.log

and this is my package.json
{
"name": "npm",
"version": "1.0.1",
"description": "my new test",
"main": "index.js",
"scripts": {
"test": "node test.js"
},
"author": "maddymaster",
"license": "ISC",
"dependencies": {
"@linclark/pkg": "^1.0.2"
},
"repository": ""
}

what can be the problem? I have tried everything including starting over again on how-to-npm with a completely new user no go.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub

from how-to-npm.

maddymaster avatar maddymaster commented on August 22, 2024

thank you @legend911 I will create a new workspace again and try out. I will share the outcome here once done :)

from how-to-npm.

soulchainer avatar soulchainer commented on August 22, 2024

Hi. I just tried this, like part of Free Code Camp path and, you now where the problem is here?

Well... I'm sorry to say this, but the problem is that this part

Because this is just a tutorial adventure, remember, we're not
actually creating an account anywhere.

Is, well... not true.

At least it seems that way.
I was getting errors because, well, I was using a username already created in the npm registry (my own nick, that I had already registered). With a non registered name, it passed.
Later, I check the registry and here it was, my «not
actually created account anywhere» created.

And when you verify that pass with how-to-npm, the tutorial says to you that:

Congratulations, pineapplesama!
You are the proud owner of an imaginary new npm account!

Well: it doesn't seems pretty much imaginary to me, you know? https://www.npmjs.com/~pineapplesama
Feels pretty real.

If the text of this 03 really doesn't pretend to mislead people into creating real accounts, I think it's failing on it. Maybe I'm wrong, but this is the feeling I have right now.

from how-to-npm.

maddymaster avatar maddymaster commented on August 22, 2024

This worked, great find. Thank you so much.

from how-to-npm.

ManBearPigg avatar ManBearPigg commented on August 22, 2024

If you came here from FreeCodeCamp and are getting this error on Cloud9, please see the solution posted by celogeek

from how-to-npm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.