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

Cannot install @angular/cli because of dependency issue #9113

Closed
DirkWillem opened this Issue Jan 6, 2018 · 75 comments

Comments

Projects
None yet
@DirkWillem

DirkWillem commented Jan 6, 2018

When I try to install @angular/cli, I get the following error:

npm install -g @angular/cli@latest
npm ERR! code ETARGET
npm ERR! notarget No matching version found for require-from-string@^1.1.0
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'cosmiconfig'
npm ERR! notarget

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/dirk/.npm/_logs/2018-01-06T18_58_49_094Z-debug.log

Versions

N/A

Repro steps

Run

npm install @angular/cli@latest

Observed behavior

Angular CLI does not install

Desired behavior

Angular CLI installs

Mention any other details that might be useful (optional)

The package require-from-string seemed to be gone from NPM for a while, but also seems to be back now

@randinterval

This comment has been minimized.

Show comment
Hide comment
@randinterval

randinterval Jan 6, 2018

@DirkWillem Yes, It was working fine few hours ago, but broke in last few hours. I'm unable to create new project due to this:

npm ERR! code ETARGET
npm ERR! notarget No matching version found for require-from-string@^1.1.0
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'cosmiconfig'
npm ERR! notarget
npm ERR! A complete log of this run can be found in:
npm ERR! /home/saad/.npm/_logs/2018-01-06T19_02_10_419Z-debug.log

Note: Creating new project via ng new is also no longer working.

randinterval commented Jan 6, 2018

@DirkWillem Yes, It was working fine few hours ago, but broke in last few hours. I'm unable to create new project due to this:

npm ERR! code ETARGET
npm ERR! notarget No matching version found for require-from-string@^1.1.0
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'cosmiconfig'
npm ERR! notarget
npm ERR! A complete log of this run can be found in:
npm ERR! /home/saad/.npm/_logs/2018-01-06T19_02_10_419Z-debug.log

Note: Creating new project via ng new is also no longer working.

@EstebanFuentealba

This comment has been minimized.

Show comment
Hide comment
@EstebanFuentealba

EstebanFuentealba Jan 6, 2018

temporal solution:
npm install https://github.com/floatdrop/require-from-string/tarball/v1.1.0 --save
npm install

EstebanFuentealba commented Jan 6, 2018

temporal solution:
npm install https://github.com/floatdrop/require-from-string/tarball/v1.1.0 --save
npm install

@paulimfavarato

This comment has been minimized.

Show comment
Hide comment
@paulimfavarato

paulimfavarato Jan 6, 2018

I'm getting this issue too!

paulimfavarato commented Jan 6, 2018

I'm getting this issue too!

@bnymncoskuner

This comment has been minimized.

Show comment
Hide comment
@bnymncoskuner

bnymncoskuner Jan 6, 2018

@EstebanFuentealba temp solution works like a charm

bnymncoskuner commented Jan 6, 2018

@EstebanFuentealba temp solution works like a charm

@Feroz-Istar

This comment has been minimized.

Show comment
Hide comment
@Feroz-Istar

Feroz-Istar Jan 6, 2018

same issue i am facing here is post stackoverflow link
temp solution is working but i am not able to create a new project using ng new command

Feroz-Istar commented Jan 6, 2018

same issue i am facing here is post stackoverflow link
temp solution is working but i am not able to create a new project using ng new command

davidfsmith added a commit to davidfsmith/flask-microservices-client that referenced this issue Jan 6, 2018

@kasik96

This comment has been minimized.

Show comment
Hide comment
@kasik96

kasik96 Jan 6, 2018

Temp solution doesnt work when i want to install fresh -g cli:
sudo npm install -g @angular/cli@latest

kasik96 commented Jan 6, 2018

Temp solution doesnt work when i want to install fresh -g cli:
sudo npm install -g @angular/cli@latest

@SameeraMadushan

This comment has been minimized.

Show comment
Hide comment
@SameeraMadushan

SameeraMadushan Jan 6, 2018

facing the same issue.. :(
even npm install doesn't work.

SameeraMadushan commented Jan 6, 2018

facing the same issue.. :(
even npm install doesn't work.

@patrickoliveras

This comment has been minimized.

Show comment
Hide comment
@patrickoliveras

patrickoliveras Jan 6, 2018

Some russian guy (floatdrop) deleted his account on npm. There are various packages that angular/cli, Vue.js and a whole lot of other projects that depended on his stuff.

patrickoliveras commented Jan 6, 2018

Some russian guy (floatdrop) deleted his account on npm. There are various packages that angular/cli, Vue.js and a whole lot of other projects that depended on his stuff.

@mcquiggd

This comment has been minimized.

Show comment
Hide comment
@mcquiggd

mcquiggd Jan 6, 2018

Yep, Vue CLI and Create-Nuxt-App seem to have identical problem...

Sigh...

mcquiggd commented Jan 6, 2018

Yep, Vue CLI and Create-Nuxt-App seem to have identical problem...

Sigh...

@paulbartocillo

This comment has been minimized.

Show comment
Hide comment
@paulbartocillo

paulbartocillo Jan 6, 2018

Same issue as well. Looks like it's not on angular-cli only. It's on the registry itself. :(

paulbartocillo commented Jan 6, 2018

Same issue as well. Looks like it's not on angular-cli only. It's on the registry itself. :(

@ocombe

This comment has been minimized.

Show comment
Hide comment
@ocombe

ocombe Jan 6, 2018

Contributor

@patrickoliveras if you delete your npm account, it shouldn't delete the npm packages

Contributor

ocombe commented Jan 6, 2018

@patrickoliveras if you delete your npm account, it shouldn't delete the npm packages

@patrickoliveras

This comment has been minimized.

Show comment
Hide comment
@patrickoliveras

patrickoliveras Jan 6, 2018

This is the dude, if anyone is interested in republishing the needed versions of the various packages to npm: https://github.com/floatdrop

patrickoliveras commented Jan 6, 2018

This is the dude, if anyone is interested in republishing the needed versions of the various packages to npm: https://github.com/floatdrop

@WahidBitar

This comment has been minimized.

Show comment
Hide comment
@WahidBitar

WahidBitar Jan 6, 2018

I just started to learn Angular 5 and reached to this issue post.
Just imagine my feelings about my learning trip ^_^

WahidBitar commented Jan 6, 2018

I just started to learn Angular 5 and reached to this issue post.
Just imagine my feelings about my learning trip ^_^

@bnymncoskuner

This comment has been minimized.

Show comment
Hide comment
@bnymncoskuner

bnymncoskuner Jan 6, 2018

@WahidBitar it is not an angular related issue. It's something with npm. Check this issue https://github.com/npm/registry/issues/255

bnymncoskuner commented Jan 6, 2018

@WahidBitar it is not an angular related issue. It's something with npm. Check this issue https://github.com/npm/registry/issues/255

@SameeraMadushan

This comment has been minimized.

Show comment
Hide comment
@SameeraMadushan

SameeraMadushan Jan 6, 2018

@WahidBitar I just started my final year research project. -_- how lucky i am.

SameeraMadushan commented Jan 6, 2018

@WahidBitar I just started my final year research project. -_- how lucky i am.

@Jasnan

This comment has been minimized.

Show comment
Hide comment
@Jasnan

Jasnan Jan 6, 2018

It seems like npm is not able to find the package require-from-string. So I tried yarn and it worked. Yarn allows you to choose a version for require-from-string

Jasnan commented Jan 6, 2018

It seems like npm is not able to find the package require-from-string. So I tried yarn and it worked. Yarn allows you to choose a version for require-from-string

@patrickoliveras

This comment has been minimized.

Show comment
Hide comment
@patrickoliveras

patrickoliveras Jan 6, 2018

@ocombe Hm. You learn a bit everyday! So maybe he just wants the world to get a bit toasty.

patrickoliveras commented Jan 6, 2018

@ocombe Hm. You learn a bit everyday! So maybe he just wants the world to get a bit toasty.

@WahidBitar

This comment has been minimized.

Show comment
Hide comment
@WahidBitar

WahidBitar Jan 6, 2018

@bnymncoskuner Yes I know but it was a pain in the a** till I knew it :D

WahidBitar commented Jan 6, 2018

@bnymncoskuner Yes I know but it was a pain in the a** till I knew it :D

@ocombe

This comment has been minimized.

Show comment
Hide comment
@ocombe

ocombe Jan 6, 2018

Contributor

to delete an account from npm you have to email the npm support :-/
if they really removed his account, then they fu**** up hard!

Contributor

ocombe commented Jan 6, 2018

to delete an account from npm you have to email the npm support :-/
if they really removed his account, then they fu**** up hard!

@arianlopezc

This comment has been minimized.

Show comment
Hide comment
@arianlopezc

arianlopezc Jan 6, 2018

is like Alfred said in the Batman movie: some people just want to see the world burn

arianlopezc commented Jan 6, 2018

is like Alfred said in the Batman movie: some people just want to see the world burn

@patrickoliveras

This comment has been minimized.

Show comment
Hide comment
@patrickoliveras

patrickoliveras Jan 6, 2018

https://www.npmjs.com/~floatdrop
Looks like it's up, but the packages aren't there.

patrickoliveras commented Jan 6, 2018

https://www.npmjs.com/~floatdrop
Looks like it's up, but the packages aren't there.

@cesar3030

This comment has been minimized.

Show comment
Hide comment
@cesar3030

cesar3030 Jan 6, 2018

Same here @WahidBitar ahah
I'm trying to dockerize my MEAN Stack but it fails to build due to that issue...

cesar3030 commented Jan 6, 2018

Same here @WahidBitar ahah
I'm trying to dockerize my MEAN Stack but it fails to build due to that issue...

@bnymncoskuner

This comment has been minimized.

Show comment
Hide comment
@bnymncoskuner

bnymncoskuner Jan 6, 2018

If you have angular-cli installed already, you can generate a new project and try the temp solution @EstebanFuentealba suggested. It is working for now.

bnymncoskuner commented Jan 6, 2018

If you have angular-cli installed already, you can generate a new project and try the temp solution @EstebanFuentealba suggested. It is working for now.

@randinterval

This comment has been minimized.

Show comment
Hide comment
@randinterval

randinterval Jan 6, 2018

Left pad all over again.

randinterval commented Jan 6, 2018

Left pad all over again.

@bjcCin

This comment has been minimized.

Show comment
Hide comment
@bjcCin

bjcCin Jan 6, 2018

NPM is broken =(((((

bjcCin commented Jan 6, 2018

NPM is broken =(((((

@krreet

This comment has been minimized.

Show comment
Hide comment
@krreet

krreet Jan 6, 2018

when will npm be fixed?

krreet commented Jan 6, 2018

when will npm be fixed?

@bnymncoskuner

This comment has been minimized.

Show comment
Hide comment
@bnymncoskuner

bnymncoskuner commented Jan 6, 2018

It seems like it is back on https://www.npmjs.com/package/require-from-string

@paulbartocillo

This comment has been minimized.

Show comment
Hide comment
@paulbartocillo

paulbartocillo Jan 6, 2018

@EstebanFuentealba temporary solutions seems to work but breaks again after installing other new npm packages. ❤️ 🗡

paulbartocillo commented Jan 6, 2018

@EstebanFuentealba temporary solutions seems to work but breaks again after installing other new npm packages. ❤️ 🗡

@arianlopezc

This comment has been minimized.

Show comment
Hide comment
@arianlopezc

arianlopezc Jan 6, 2018

It is fixed already. Go and try again. I was able to install

arianlopezc commented Jan 6, 2018

It is fixed already. Go and try again. I was able to install

@mcquiggd

This comment has been minimized.

Show comment
Hide comment
@mcquiggd

mcquiggd Jan 6, 2018

It's literally 29 lines of code:

'use strict';

var Module = require('module');
var path = require('path');

module.exports = function requireFromString(code, filename, opts) {
	if (typeof filename === 'object') {
		opts = filename;
		filename = undefined;
	}

	opts = opts || {};
	filename = filename || '';

	opts.appendPaths = opts.appendPaths || [];
	opts.prependPaths = opts.prependPaths || [];

	if (typeof code !== 'string') {
		throw new Error('code must be a string, not ' + typeof code);
	}

	var paths = Module._nodeModulePaths(path.dirname(filename));

	var m = new Module(filename, module.parent);
	m.filename = filename;
	m.paths = [].concat(opts.prependPaths).concat(paths).concat(opts.appendPaths);
	m._compile(code, filename);

	return m.exports;
};

mcquiggd commented Jan 6, 2018

It's literally 29 lines of code:

'use strict';

var Module = require('module');
var path = require('path');

module.exports = function requireFromString(code, filename, opts) {
	if (typeof filename === 'object') {
		opts = filename;
		filename = undefined;
	}

	opts = opts || {};
	filename = filename || '';

	opts.appendPaths = opts.appendPaths || [];
	opts.prependPaths = opts.prependPaths || [];

	if (typeof code !== 'string') {
		throw new Error('code must be a string, not ' + typeof code);
	}

	var paths = Module._nodeModulePaths(path.dirname(filename));

	var m = new Module(filename, module.parent);
	m.filename = filename;
	m.paths = [].concat(opts.prependPaths).concat(paths).concat(opts.appendPaths);
	m._compile(code, filename);

	return m.exports;
};
@joseferrercba

This comment has been minimized.

Show comment
Hide comment

joseferrercba commented Jan 6, 2018

@ByMiles

This comment has been minimized.

Show comment
Hide comment
@ByMiles

ByMiles Jan 6, 2018

but install dont still dont works

ByMiles commented Jan 6, 2018

but install dont still dont works

@patrickoliveras

This comment has been minimized.

Show comment
Hide comment
@patrickoliveras

patrickoliveras commented Jan 6, 2018

@keenanamigos you can follow the incident here: https://status.npmjs.org/incidents/41zfb8qpvrdj

@keenanamigos

This comment has been minimized.

Show comment
Hide comment
@keenanamigos

keenanamigos commented Jan 6, 2018

@patrickoliveras thank you!

@Ekta17

This comment has been minimized.

Show comment
Hide comment
@Ekta17

Ekta17 Jan 6, 2018

temp solution is not working either

Ekta17 commented Jan 6, 2018

temp solution is not working either

@bjcCin

This comment has been minimized.

Show comment
Hide comment
@bjcCin

bjcCin Jan 6, 2018

its just wait now

bjcCin commented Jan 6, 2018

its just wait now

@joseferrercba

This comment has been minimized.

Show comment
Hide comment
@joseferrercba

joseferrercba Jan 6, 2018

yeap. now have problems with pinkie-promise@^2.0.0 package

joseferrercba commented Jan 6, 2018

yeap. now have problems with pinkie-promise@^2.0.0 package

@shubhamchandra

This comment has been minimized.

Show comment
Hide comment
@shubhamchandra

shubhamchandra Jan 6, 2018

not working
npm ERR! code ETARGET
npm ERR! notarget No matching version found for require-from-string@^1.1.0
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'cosmiconfig'
npm ERR! notarget
from past 4 hrs at least

shubhamchandra commented Jan 6, 2018

not working
npm ERR! code ETARGET
npm ERR! notarget No matching version found for require-from-string@^1.1.0
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'cosmiconfig'
npm ERR! notarget
from past 4 hrs at least

@Tameshiwari

This comment has been minimized.

Show comment
Hide comment
@Tameshiwari

Tameshiwari Jan 6, 2018

RE: pinkie-promise@^2.0.0 package
Yup... same here... so the whole Angular 5 CLI installation process seems pretty well broken [ not to say f****d up...] for now... so I guess we have no choice but clean up the whole mess and all unwanted leftover garbage... then go out and have a beer... then hmmm naah maybe not... a bit too chilly up here... Brrrrrr...

Tameshiwari commented Jan 6, 2018

RE: pinkie-promise@^2.0.0 package
Yup... same here... so the whole Angular 5 CLI installation process seems pretty well broken [ not to say f****d up...] for now... so I guess we have no choice but clean up the whole mess and all unwanted leftover garbage... then go out and have a beer... then hmmm naah maybe not... a bit too chilly up here... Brrrrrr...

@BinsGuns

This comment has been minimized.

Show comment
Hide comment
@BinsGuns

BinsGuns Jan 6, 2018

Still not working trying to install angular CLI.
npm ERR! notarget No matching version found for require-from-string@^1.1.0
Hopefully they can fix this issue.

BinsGuns commented Jan 6, 2018

Still not working trying to install angular CLI.
npm ERR! notarget No matching version found for require-from-string@^1.1.0
Hopefully they can fix this issue.

@gathagu354

This comment has been minimized.

Show comment
Hide comment
@gathagu354

gathagu354 Jan 6, 2018

Getting the same error here..still waiting for the fix

gathagu354 commented Jan 6, 2018

Getting the same error here..still waiting for the fix

@patrickoliveras

This comment has been minimized.

Show comment
Hide comment
@patrickoliveras

patrickoliveras Jan 6, 2018

You can use npm view require-from-string versions --json and check if version 1.1.0 is there, instead of trying to reinstall every 5 minutes. When you do eventually see 1.1.0, then we should be back on track for installing angular-cli.

patrickoliveras commented Jan 6, 2018

You can use npm view require-from-string versions --json and check if version 1.1.0 is there, instead of trying to reinstall every 5 minutes. When you do eventually see 1.1.0, then we should be back on track for installing angular-cli.

@Darkensses

This comment has been minimized.

Show comment
Hide comment
@Darkensses

Darkensses commented Jan 6, 2018

you can follow this thread
https://github.com/npm/registry/issues/255

@mcquiggd

This comment has been minimized.

Show comment
Hide comment
@mcquiggd

mcquiggd Jan 6, 2018

Progress is being made... live update:

jenga2

mcquiggd commented Jan 6, 2018

Progress is being made... live update:

jenga2

@omarefg

This comment has been minimized.

Show comment
Hide comment
@omarefg

omarefg Jan 6, 2018

$ npm view require-from-string versions --json

[
"2.0.2"
]

omarefg commented Jan 6, 2018

$ npm view require-from-string versions --json

[
"2.0.2"
]

@DevAiyana

This comment has been minimized.

Show comment
Hide comment
@DevAiyana

DevAiyana Jan 6, 2018

It´s Intel! i know it

DevAiyana commented Jan 6, 2018

It´s Intel! i know it

@chipatel

This comment has been minimized.

Show comment
Hide comment
@chipatel

chipatel Jan 6, 2018

Workaround: You can copy node_module from the different project.

chipatel commented Jan 6, 2018

Workaround: You can copy node_module from the different project.

@iamsainikhil

This comment has been minimized.

Show comment
Hide comment
@iamsainikhil

iamsainikhil Jan 6, 2018

You can check npm status updates here
https://status.npmjs.org/

iamsainikhil commented Jan 6, 2018

You can check npm status updates here
https://status.npmjs.org/

@zxxz

This comment has been minimized.

Show comment
Hide comment
@zxxz

zxxz Jan 6, 2018

It finally worked! :-)

zxxz commented Jan 6, 2018

It finally worked! :-)

@gathagu354

This comment has been minimized.

Show comment
Hide comment
@gathagu354

gathagu354 Jan 6, 2018

still having issues with require-from-string@^1.1.0

gathagu354 commented Jan 6, 2018

still having issues with require-from-string@^1.1.0

@leonardis

This comment has been minimized.

Show comment
Hide comment
@leonardis

leonardis Jan 6, 2018

Still the error.

leonardis commented Jan 6, 2018

Still the error.

@kirkdmo

This comment has been minimized.

Show comment
Hide comment
@kirkdmo

kirkdmo Jan 6, 2018

try: npm install npm@next -g , then install @angular/cli

kirkdmo commented Jan 6, 2018

try: npm install npm@next -g , then install @angular/cli

@Darkensses

This comment has been minimized.

Show comment
Hide comment
@Darkensses

Darkensses Jan 6, 2018

it works right now :)

Darkensses commented Jan 6, 2018

it works right now :)

@JrFernando

This comment has been minimized.

Show comment
Hide comment
@JrFernando

JrFernando Jan 6, 2018

Here it came back working! :)

JrFernando commented Jan 6, 2018

Here it came back working! :)

@Tameshiwari

This comment has been minimized.

Show comment
Hide comment
@Tameshiwari

Tameshiwari Jan 6, 2018

RE: Here it came back working :)
Same thing up here: It's aliiiive... It's aliiiive... Everything is back and running... Yeeeeeeeess :)

Tameshiwari commented Jan 6, 2018

RE: Here it came back working :)
Same thing up here: It's aliiiive... It's aliiiive... Everything is back and running... Yeeeeeeeess :)

@radpl

This comment has been minimized.

Show comment
Hide comment
@radpl

radpl Jan 7, 2018

npm just gave everyone free Saturday evening :)

radpl commented Jan 7, 2018

npm just gave everyone free Saturday evening :)

@pichardoJ

This comment has been minimized.

Show comment
Hide comment
@pichardoJ

pichardoJ Jan 8, 2018

So i think this can be closed right?

pichardoJ commented Jan 8, 2018

So i think this can be closed right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment