Please provide us with the following information:
- OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Mac OSX El Capitan- Versions. Please run
ng --version
. If there's nothing outputted, please run
in a Terminal:node --version
and paste the result here:
[email protected]
node 6.4.0- Repro steps. Was this an app that wasn't created using the CLI? What change did you
do on your code? etc.
runng new project
- The log given by the failure. Normally this include a stack trace and some
more information.- Mention any other details that might be useful.
It seems that this npm package has not been published yet
Same here
Same problem here. When I list my global node modules, I do get a peer dependency errors as well.
npm list -g -depth=0
/usr/local/lib
โโโ [email protected]
โโโ [email protected]
โโโ [email protected]
โโโ [email protected]
โโโ [email protected]
โโโ [email protected]
โโโ [email protected]
โโโ [email protected]
โโโ [email protected]
โโโ [email protected]
โโโ [email protected]
npm ERR! peer dep missing: [email protected], required by @angular/[email protected]
npm ERR! peer dep missing: typescript@^1.9.0-dev, required by @angular/[email protected]
npm ERR! peer dep missing: typescript@^1.9.0-dev, required by @angular/[email protected]
npm ERR! peer dep missing: [email protected] || 2.x.x, required by [email protected]
npm ERR! peer dep missing: @angular/platform-server@^2.0.0-rc.5, required by @angular/[email protected]
npm ERR! peer dep missing: zone.js@^0.6.6, required by @angular/[email protected]
npm ERR! peer dep missing: tslint@^3.0.0, required by [email protected]
npm ERR! peer dep missing: typescript@^1.9.0-dev, required by @angular/[email protected]
npm ERR! peer dep missing: typescript@^1.8.0 || ^1.9.0-dev, required by [email protected]
Thanks!
+1
I get this running ng serve
after upgrading to the beta.3.
npm list angular-cli
โโโฌ [email protected]
โ โโโ UNMET PEER DEPENDENCY @angular/platform-server@^2.0.0-rc.5
โ โโโ UNMET PEER DEPENDENCY [email protected]
โโโ UNMET PEER DEPENDENCY [email protected]
npm ERR! peer dep missing: typescript@^1.9.0-dev, required by @angular/[email protected]
npm ERR! peer dep missing: typescript@^1.9.0-dev, required by @angular/[email protected]
npm ERR! peer dep missing: [email protected] || 2.x.x, required by [email protected]
npm ERR! peer dep missing: @angular/platform-server@^2.0.0-rc.5, required by @angular/[email protected]
Just ran: npm install -g angular-cli@webpack
and now I get several errors whenever I run any ng command
$ ng --version
Error while running script "/usr/local/lib/node_modules/angular-cli/addon/ng2/utilities/ast-utils.ts":
Error: Cannot find module '@angular-cli/ast-tools'
I forgot to publish the ast-tools
package. This should be fixed soon.
Ok that was fast
@hansl thanks for you quick response, I think it is worth noticing that during the installation Im getting the message:
[execSync v1.0.2]
Native code compile failed!!
according to this, the dependency should be dropped in favor of
sync-exec as execSync is no longer maintained.
cheers
still @angular-cli/ast-tools not found - anyone else also having the same issue after upgrading to .4?
after upgrading to .5, same error
https://gitter.im/angular/angular-cli - @hansl says it's coming... He's working on it as we 'speak'.
This is fixed with the latest webpack (8) release. Just upgrade to the latest webpack. Sorry for the problems.
Cheers!
Now working on node 6.5
Just had to install again.
again with
"[email protected]",
"[email protected]",
"@angular-cli/[email protected]"
after upgrading to [email protected], am getting same error after "ng new my-project"
am using: [email protected], [email protected], windows 10/64bit
Cannot find module '@angular-cli/ast-tools'
Error: Cannot find module '@angular-cli/ast-tools'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.(C:\Users\User\AppData\Roaming\npm\node_modules\angular-cli\utilities\ast-utils.js:4:19)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.(C:\Users\User\AppData\Roaming\npm\node_modules\angular-cli\modelsfind-lazy-modules.js:7:19)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.(C:\Users\User\AppData\Roaming\npm\node_modules\angular-cli\models\webpack-build-typescript.js:4:27)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.(C:\Users\User\AppData\Roaming\npm\node_modules\angular-cli\models\webpack-config.js:2:34)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.(C:\Users\User\AppData\Roaming\npm\node_modules\angular-clitasks\build-webpack.js:6:24)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.(C:\Users\User\AppData\Roaming\npm\node_modules\angular-cli\commands\build.js:3:23)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Class.includedCommands (C:\Users\User\AppData\Roaming\npm\node_modules\angular-cli\addonindex.js:21:16)
at C:\Users\User\AppData\Roaming\npm\node_modules\angular-cli\node_modules\angular-cli\lib\models\project.js:392:61
at Array.forEach (native)
at Project.addonCommands (C:\Users\User\AppData\Roaming\npm\node_modules\angular-cli\node_modules\angular-cli\lib\models\project.js:391:15)
at Project.eachAddonCommand (C:\Users\User\AppData\Roaming\npm\node_modules\angular-cli\node_modules\angular-cli\lib\models\project.js:426:30)
at module.exports (C:\Users\User\AppData\Roaming\npm\node_modules\angular-cli\node_modules\angular-cli\lib\cli\lookup-command.js:33:13)
at CLI.(C:\Users\User\AppData\Roaming\npm\node_modules\angular-cli\node_modules\angular-cli\lib\cli\cli.js:34:26)
at tryCatch (C:\Users\User\AppData\Roaming\npm\node_modules\angular-cli\node_modules\rsvp\dist\rsvp.js:538:12)
at invokeCallback (C:\Users\User\AppData\Roaming\npm\node_modules\angular-cli\node_modules\rsvp\dist\rsvp.js:553:13)
at publish (C:\Users\User\AppData\Roaming\npm\node_modules\angular-cli\node_modules\rsvp\dist\rsvp.js:521:7)
at flush (C:\Users\User\AppData\Roaming\npm\node_modules\angular-cli\node_modules\rsvp\dist\rsvp.js:2373:5)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
Getting the same with beta-18. It was working earlier today.
Same with beta-17 , beta-18 and beta-19-2.
I think that some dependencies were updated yesterday, and this broke angular-cli. The package.json has many '^' in the dependecies.
Same for me.
Worked perfect yesterday, but now trying to set up a new project I do get errors
Same for me using beta-19-2.
Same here, [email protected]
(via npm install -g angular-cli, had a previous cli version installed).
node --version
=> v7.0.0
npm --version
=> 3.10.8
Using nvm.
miguelgl@mgl-macbook:~$ which ng
/Users/miguelgl/.nvm/versions/node/v7.0.0/bin/ng
miguelgl@mgl-macbook:~$ ll `which ng`
lrwxr-xr-x 1 miguelgl staff 38B Oct 28 22:33 /Users/miguelgl/.nvm/versions/node/v7.0.0/bin/ng -> ../lib/node_modules/angular-cli/bin/ng
miguelgl@mgl-macbook:~$ ll /Users/miguelgl/.nvm/versions/node/v7.0.0/lib/node_modules/
total 0
drwxr-xr-x 18 miguelgl staff 612B Oct 28 22:33 angular-cli
drwxr-xr-x 25 miguelgl staff 850B Oct 25 15:16 npm
Thanks!
Same issue.
i spent my hole day and getting same error.
same here. tried to install an older version on angular-cli (beta-16) and I have the same issue now... I'm stuck...
It's fixed now. Run npm install ... it should work now.
It works.. I had to do
npm uninstall -g angular-cli
and
npm install -g angular-cli@latest
then it worked fine.
Anyone got it fixed, I am getting the same issue.
Cannot find module '@angular-cli/ast-tools'
Error: Cannot find module '@angular-cli/ast-tools'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object.
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object.
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object.
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object.
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object.
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object.
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Class.module.exports.includedCommands (/usr/local/lib/node_modules/angular-cli/addon/index.js:21:16)
at /usr/local/lib/node_modules/angular-cli/node_modules/angular-cli/lib/models/project.js:392:61
at Array.forEach (native)
at Project.addonCommands (/usr/local/lib/node_modules/angular-cli/node_modules/angular-cli/lib/models/project.js:391:15)
at Project.eachAddonCommand (/usr/local/lib/node_modules/angular-cli/node_modules/angular-cli/lib/models/project.js:426:30)
at module.exports (/usr/local/lib/node_modules/angular-cli/node_modules/angular-cli/lib/cli/lookup-command.js:33:13)
at CLI.
at tryCatch (/usr/local/lib/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:538:12)
at invokeCallback (/usr/local/lib/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:553:13)
at publish (/usr/local/lib/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:521:7)
at flush (/usr/local/lib/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:2373:5)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
i'm getting the issue also, running mac sierra, everthing was running fine, then updated 2 days ago. Now I reinstalled from scratch, and this is what happens:
@angular/[email protected] requires a peer of @angular/[email protected] but none was installed.
user-MacBook-Pro:faclient username$ ng version
-bash: ng: command not found
user-MacBook-Pro:faclient username$ node --version
v6.4.0
Is it just me or do things just absolutely break on a regular basis for no apparent reason.
I haven't noticed that. This project has been very helpful to me and i appreciate all the work done on it. Besides, it's not like we are paying for it so it's my opinion that we should be appreciative of the work being done for us.
We had an issue with the latest release a few days ago, more information can be found in https://github.com/angular/angular-cli/issues/2940.
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
I forgot to publish the
ast-tools
package. This should be fixed soon.