angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Module @angular-cli/ast-tools not found

Open carlosvalle opened this issue 10 years ago • 32 comments

Please provide us with the following information:

  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) Mac OSX El Capitan
  2. 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
  3. Repro steps. Was this an app that wasn't created using the CLI? What change did you do on your code? etc. run ng new project
  4. The log given by the failure. Normally this include a stack trace and some more information.
  5. Mention any other details that might be useful. It seems that this npm package has not been published yet

carlosvalle avatar Aug 29 '16 22:08 carlosvalle

Same issue.

pkraus109 avatar Oct 28 '16 21:10 pkraus109

i spent my hole day and getting same error.

ayubali avatar Oct 28 '16 21:10 ayubali

same here. tried to install an older version on angular-cli (beta-16) and I have the same issue now... I'm stuck...

MerlinMartel avatar Oct 28 '16 21:10 MerlinMartel

It's fixed now. Run npm install ... it should work now.

sdeuvarow avatar Oct 28 '16 21:10 sdeuvarow

It works.. I had to do npm uninstall -g angular-cli and npm install -g angular-cli@latest then it worked fine.

fredricadell avatar Oct 29 '16 03:10 fredricadell

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. (/usr/local/lib/node_modules/angular-cli/utilities/ast-utils.js:4:19) 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. (/usr/local/lib/node_modules/angular-cli/models/find-lazy-modules.js:7:19) 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. (/usr/local/lib/node_modules/angular-cli/models/webpack-build-typescript.js:4:27) 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. (/usr/local/lib/node_modules/angular-cli/models/webpack-config.js:2:34) 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. (/usr/local/lib/node_modules/angular-cli/tasks/build-webpack.js:6:24) 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. (/usr/local/lib/node_modules/angular-cli/commands/build.js:3:23) 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. (/usr/local/lib/node_modules/angular-cli/node_modules/angular-cli/lib/cli/cli.js:34:26) 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)

nadeemse avatar Oct 29 '16 05:10 nadeemse

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

daddyschmack avatar Oct 31 '16 04:10 daddyschmack

Is it just me or do things just absolutely break on a regular basis for no apparent reason.

natificent avatar Oct 31 '16 12:10 natificent

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.

daddyschmack avatar Oct 31 '16 13:10 daddyschmack

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.

filipesilva avatar Nov 03 '16 17:11 filipesilva

+1

bertolo1988 avatar Nov 11 '16 18:11 bertolo1988

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.