Cannot find module '@angular/tsc-wrapped/src/tsc'
Please provide us with the following information:
OS?
Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Mac OsX 10.11.6
Versions.
Please run
ng --version. If there's nothing outputted, please run in a Terminal:node --versionand paste the result here:
ng --version gives this error: Cannot find module '@angular/tsc-wrapped/src/tsc'
Repro steps.
Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
Mention any other details that might be useful.
Followed the tutorial to update cli. Now it is broken on all ng commands...
Thanks! We'll be in touch soon.
what does npm --versionsay? For me, updating to current npm and reinstalling angular-cli fixed the issue. It seems npm > 3.0.0is required, see: https://github.com/angular/angular-cli#prerequisites
same problem here, same error on Windows 10, Node: v4.6.1
FIXED: fixed updating npm using: npm install npm@latest -g
@Jaco97 I got the same issue tried ur fix but not working for me still showing the same issue.
@iaashish i was facing issue - tried following and it worked reinstalled npm to latest version npm uninstall -g angular-cli npm cache clean npm install -g angular-cli@latest
@snagar78 tried, it was working... tq
Thanks Snagar78
Your tips helped me as well 👍 dir
@snagar78 Thanks, worked well:)
Its not working for me node version : 6.4.0 npm version : 4.0.2
Error:
Cannot find module '@angular/tsc-wrapped/src/tsc'
Error: Cannot find module '@angular/tsc-wrapped/src/tsc'
at Function.Module._resolveFilename (module.js:455:15)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object.
@tauqeer81 did you try these steps? npm install npm@latest -g npm uninstall -g angular-cli npm cache clean npm install -g angular-cli@latest
and launched command prompt as administrator in windows and use sudo in mac ?
None of these solutions worked for me...
Same here :-( None of these solutions worked for me...
Sorry for the late reaction. tx @JimTheMan
for me the "npm install @angular/tsc-wrapped autoprefixer" part worked, i quess because II did a lot of things, you know how it works..., thus I'm not sure ...
Someone please help... :(
Huzzah!
I was running npm update, but it was not actually updating npm. hehe. I was on npm version 2.15.9, and I need to run this to really update:
sudo npm install -g npm
Now npm -v returns 4.0.3, and it works!
BTW- after updating npm I also had to delete the node_modules folder and rerun npm i
Hope this works for you too @jvdboom :)
npm install npm@latest -g npm uninstall -g angular-cli npm cache clean npm install -g angular-cli@latest
Then followed @JimTheMan advice to delete the node_modules folder. npm install went through successfully!
I had the same kind of problem using CircleCI. Tried a few different things. I got it to work eventually by installing the missing dependencies by hand in circle.yml. It's odd that this works without any problems on my Mac.
I don't have the time to research this more, but my feeling is that something isn't correctly installed on some systems. Apparently the @angular/tsc-wrapped and autoprefixer are not installed when npm install is run. Doing this manually before building fixes this.
pre:
- npm install -g angular-cli
- npm install @angular/tsc-wrapped autoprefixer
Maybe someone with some more in-depth knowledge can look into this? I assume this is isolated to angular-cli, not a general problem with angular or tools involved.
Closing as this doesn't happen anymore AFAIK. The original problem was with a bad release I believe.
@bastibense I have seen installs not actually installing all the packages, but not too sure what causes it. Our bet at the moment is that on system that can build native libs, that might fail and leave the repo incomplete.
It's an issue with npm itself I think, but we're trying to reduce the number of libs that try to do native compiles. See https://github.com/angular/angular-cli/issues/2522 https://github.com/angular/angular-cli/issues/1782 for that kind of issue.
I am also having the same problem my specifications are: OS:windows 8 Version:npm v6.10.3
Try this: npm install npm@latest -g npm uninstall -g angular-cli npm cache clean npm install -g angular-cli@latest and then: npm install @angular/tsc-wrapped autoprefixer
worked for me.
I have tried the above installation i m having this errors:
"This is most likely not a problem with npm itself. In most cases you or one of your dependencies are requesting a package version that doesn't exist."... "Please include the following file with any support request: D:\ionicTask\npm-debug.log"
npm install @angular/tsc-wrapped autoprefixer