Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refusing to install micro as a dependency of itself #83

Closed
NexusLee opened this issue Aug 19, 2016 · 6 comments
Closed

Refusing to install micro as a dependency of itself #83

NexusLee opened this issue Aug 19, 2016 · 6 comments

Comments

@NexusLee
Copy link

43 verbose stack Error: Refusing to install micro as a dependency of itself
43 verbose stack at checkSelf (/usr/local/lib/node_modules/npm/lib/install/validate-args.js:53:14)
43 verbose stack at Array. (/usr/local/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)
43 verbose stack at LOOP (/usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:14)
43 verbose stack at chain (/usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:20:5)
43 verbose stack at /usr/local/lib/node_modules/npm/lib/install/validate-args.js:16:5
43 verbose stack at /usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:52:35
43 verbose stack at Array.forEach (native)
43 verbose stack at /usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:52:11
43 verbose stack at Array.forEach (native)
43 verbose stack at asyncMap (/usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:51:8)
44 verbose cwd /Users/work/nodejs/micro
45 error Darwin 14.5.0
46 error argv "/usr/bin/node" "/usr/local/bin/npm" "install" "micro@6.0.1"
47 error node v6.4.0
48 error npm v3.10.3
49 error code ENOSELF
50 error Refusing to install micro as a dependency of itself
51 error If you need help, you may report this error at:
51 error https://github.com/npm/npm/issues
52 verbose exit [ 1, true ]

@leo
Copy link
Contributor

leo commented Aug 19, 2016

Please remove micro and install it again. Since "micro" isn't defined as a dependency of itself, this error actually doesn't make any sense. Let me know if it's working now! 😊

Remember: npm install -g micro or locally: npm install --save micro

@leo leo closed this as completed Aug 19, 2016
@alexsteixeira
Copy link

$ mv /Users/work/nodejs/micro /Users/work/nodejs/micro-xyz

@NexusLee
Copy link
Author

@leo It worked. I removed the folder and reinstalled micro locally. Thanks.

@fridays
Copy link

fridays commented Nov 10, 2016

I had the same situation, it happens when you choose micro as the name when npm init a new project

@winnemucca
Copy link

@fridays Why is that? I have not seen an error like this before.

@fridays
Copy link

fridays commented Mar 13, 2017

It's the case with every npm package, you can't install it when your project has the same name in package.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants