Comments (16)
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.
I should add that I am running nodeJs on a cloud9 server.
from how-to-npm.
Getting the same error here (Local installation of node)
from how-to-npm.
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.
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.
@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.
O_O oh... err... oops. Time to backtrack.
from how-to-npm.
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.
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.
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.
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.
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 connectnpm 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.logand 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.
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.
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.
This worked, great find. Thank you so much.
from how-to-npm.
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)
- Update the label names HOT 1
- Pull request #108 rolls back fix #57 HOT 5
- Incorrectly reports wrong folder on windows due to case sensitivity HOT 1
- Version checking issue with "00 Install npm" exercise HOT 3
- how-to-npm HOT 2
- Very basic NPM newbie question HOT 2
- Cannot publish HOT 2
- npm publish needs a paid account HOT 3
- Renew the problems to support npm@5
- Error, when trying to reset registry HOT 3
- when I type how-to-npm in terminal It gives me the following error HOT 2
- Challenge 00: doesn't tell you how to check version HOT 1
- npm-init fails in Dev Enviroment
- No outdated packages ... HOT 1
- "npm install <package-name>" better than "npm install <module-name>"
- should keep bundleDependencies in package.json? HOT 1
- no such file or directory, chmod '/usr/local/lib/node_modules/how-to-npm/node_modules/mkdirp/bin/cmd.js' HOT 7
- Error: Cannot find module 'workshopper-adventure/adventure' HOT 2
- npm adduser -> Error: code ENYI Web login not supported
- Is this repository still being maintained in 2023? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from how-to-npm.