-
Notifications
You must be signed in to change notification settings - Fork 155
bug(schematics): Cannot find module '@angular-devkit/core' #256
Comments
Yea same issue here, after uninstalling |
|
@Theo4u |
@jainmitesh09 Oh can't really say, since it's in the pkgjson . But i added it to mine to stop the error when running local commands like |
Same here. As a quick fix |
I rolled back to |
It seems that some dependencies became peerDependencies. :( But restarting from scratch now works because of newer version just deployed |
Taking @germs12 advice, I rolled back to 1.6.3. But then I re-installed 1.6.4 and everything seems to be working again. |
I don't know what happened, I got the same error during npm install ~1 hour ago, but now everything worked fine again (without any change from my side meantime). |
There was indeed a bad release about 1h ago but we've since rolled back and republished the previous version while we work on a real fix. |
@hansl This ticket was about schematics, not the devkit / cli |
Sorry, i just wanted to add the following as context:
|
I've cleared everything out and reinstalled. So far nothing is working. I have a feeling it's due to some cached version of the CLI on my computer. Amusing part of this for me is this: I was researching the problem for an issue in AWS CodeBuild. Fixed that, but now I can't get Thanks @hansl for you and your teams work. |
@germs12 just run this command in your prompt ""npm install -g @angular-devkit/core"" i think it will fix your problem |
@germs12 Uninstalling latest and install
worked for me. At least until a fix to current bug. |
Fixing it as per reference angular/devkit#256
@nnennajohn : Did not worked for me... For me
did the trick. |
- block angular cli to version 1.6.3 until the issue angular/angular-cli#9185 is resolved - add angular-devkit/core to dev dependencies until the issue angular/devkit#256 is resolved
For me this is like the fifth time during the past 3 months that the community around npm & angular managed to somehow break the fundamental rule of any sane package repository: the published versions never ever change. |
@nnennajohn Not working for me |
@MateuszStefek we're using yarn and I can't recall having any issues since switching to yarn. The only thing is that our nightly job which tries updating the yarn lock file failed few times, but mostly it's working again the next night, or it's super easy to fix. It really is up to you to make sure that you always have the same package dependencies, that's why there are lock files, so use them |
I'd like to remind everyone that you only have reproducible installs if you use a lockfile. Both NPM v5+ and Yarn support lockfiles. If your CI works one day but not the next and you did not change your code or It is your responsibility as a library consumer to use lockfiles. No one wants to do a release with bugs but it sometimes happens, and the best we can do is to fix it as fast as possible with a new release. When you have a couple of thousand total dependencies it is only a matter of time until one of them has a bad release. |
I am getting this on my local machine and my build server Surely a @ediri's workaround fixed it. But probs not a long term solution
|
Hello all, In the package.json I have: And I also use a lockfile package-lock.json Why am i getting this error? And how can I fix it? Thank you |
Please see angular/angular-cli#9276 (comment) for a list of latest versions that have this problem fixed. |
Hi Filipe, Thank you. Should I change something in the package-json.lock file? (I did not get the comment with "It is your responsibility as a library consumer to use lockfiles") "@angular/cli": { Thank you, |
@attina-claudia after updating your By |
This issue is related to the latest Angular cli from v1.6> I hope this will be fixed in the upcoming Angular cli update |
For me, |
In Mac, i just ran |
@my issue solve by this command: |
This works for me |
You can also simply try this
|
npm i -D @angular-devkit/core |
npm i --save-dev #@angular-devkit/core by :sumitpatel19990 |
Hi. |
Hi,
thank you very much, i have npm 5.6.0 version.
cordially
2018-01-21 14:39 GMT+00:00 attina-claudia <notifications@github.com>:
… Hi.
Adding angular-devkit/core to your devDependencies is not a proper
solution.
As Filipe said, we need to have a lock file (package-lock.json) but make
sure that you have npm v5+ (i had an older version and the lock file was
ignored). If you don't have one, update angular-cli to 1.5.6. Run npm
install.
Should work.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#256 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AP7zhOPS78fooWFDItevCMvHa4StTUYrks5tM0wLgaJpZM4QQ58O>
.
--
*HAMMANI Mourad*
Tel: 0674324902
|
They fixed this issue at angular-cli v1.6.5 by this commit: angular/angular-cli@c7aefaa and it works well for me without adding angular-devkit/core to my package.json. I just updated the CLI to the latest (v1.6.5) version. |
@Theo4u thanks it worked for me |
This works for me ................ just run: npm i @angular-devkit/core --save ...................................................................................... |
thnx guys npm install @angular-devkit/core --save-dev , it worked for me |
@merobal Thank you! Worked for me! |
I struggled with the same problem. My project was generated using the v 1.6.0 of angular-cli. npm update -g @angular/cli |
Bug Report or Feature Request (mark with an
x
)Area
Versions
node 6.9.1
npm 5.4.2
Windows 10
Repro steps
If you globally install @angular-devkit/schematics and try to create a new schematic using
schematics @schematics/schematics:schematic --name=SomeSchematicName
you will get the following error:The log given by the failure
Desired functionality
No errors and a generated new schematics blueprint
Mention any other details that might be useful
the
@schematics/schematics:schematic
factory uses a dependency on@angular-devkit/core
, but this dependency is not in the package.jsonThe text was updated successfully, but these errors were encountered: