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

Cannot find module '@angular-cli/ast-tools'

Open kevinaud opened this issue 10 years ago • 22 comments

Please provide us with the following information:

OS?

Linux, Fedora 23 Node 6.6.0 npm 3.10.3

Versions.

Version 1.0.0-beta.18

Repro steps.

mkdir test cd test npm install [email protected] ng new test-app

The log given by the failure.

Cannot find module '@angular-cli/ast-tools' Error: Cannot find module '@angular-cli/ast-tools' 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. (/home/kevinaud/bin/test/node_modules/angular-cli/utilities/ast-utils.js:4:19) at Module._compile (module.js:556:32) at Object.Module._extensions..js (module.js:565:10) at Module.load (module.js:473:32) at tryModuleLoad (module.js:432:12) at Function.Module._load (module.js:424:3) at Module.require (module.js:483:17) at require (internal/module.js:20:19) at Object. (/home/kevinaud/bin/test/node_modules/angular-cli/models/find-lazy-modules.js:7:19) at Module._compile (module.js:556:32) at Object.Module._extensions..js (module.js:565:10) at Module.load (module.js:473:32) at tryModuleLoad (module.js:432:12) at Function.Module._load (module.js:424:3) at Module.require (module.js:483:17) at require (internal/module.js:20:19) at Object. (/home/kevinaud/bin/test/node_modules/angular-cli/models/webpack-build-typescript.js:4:27) at Module._compile (module.js:556:32) at Object.Module._extensions..js (module.js:565:10) at Module.load (module.js:473:32) at tryModuleLoad (module.js:432:12) at Function.Module._load (module.js:424:3) at Module.require (module.js:483:17) at require (internal/module.js:20:19) at Object. (/home/kevinaud/bin/test/node_modules/angular-cli/models/webpack-config.js:2:34) at Module._compile (module.js:556:32) at Object.Module._extensions..js (module.js:565:10) at Module.load (module.js:473:32) at tryModuleLoad (module.js:432:12) at Function.Module._load (module.js:424:3) at Module.require (module.js:483:17) at require (internal/module.js:20:19) at Object. (/home/kevinaud/bin/test/node_modules/angular-cli/tasks/build-webpack.js:6:24) at Module._compile (module.js:556:32) at Object.Module._extensions..js (module.js:565:10) at Module.load (module.js:473:32) at tryModuleLoad (module.js:432:12) at Function.Module._load (module.js:424:3) at Module.require (module.js:483:17) at require (internal/module.js:20:19) at Object. (/home/kevinaud/bin/test/node_modules/angular-cli/commands/build.js:3:23) at Module._compile (module.js:556:32) at Object.Module._extensions..js (module.js:565:10) at Module.load (module.js:473:32) at tryModuleLoad (module.js:432:12) at Function.Module._load (module.js:424:3) at Module.require (module.js:483:17) at require (internal/module.js:20:19) at Class.includedCommands (/home/kevinaud/bin/test/node_modules/angular-cli/addon/index.js:21:16) at /home/kevinaud/bin/test/node_modules/angular-cli/lib/models/project.js:392:61 at Array.forEach (native) at Project.addonCommands (/home/kevinaud/bin/test/node_modules/angular-cli/lib/models/project.js:391:15) at Project.eachAddonCommand (/home/kevinaud/bin/test/node_modules/angular-cli/lib/models/project.js:426:30) at module.exports (/home/kevinaud/bin/test/node_modules/angular-cli/lib/cli/lookup-command.js:33:13) at CLI. (/home/kevinaud/bin/test/node_modules/angular-cli/lib/cli/cli.js:34:26) at tryCatch (/home/kevinaud/bin/test/node_modules/rsvp/dist/rsvp.js:538:12) at invokeCallback (/home/kevinaud/bin/test/node_modules/rsvp/dist/rsvp.js:553:13) at publish (/home/kevinaud/bin/test/node_modules/rsvp/dist/rsvp.js:521:7) at flush (/home/kevinaud/bin/test/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)

Mention any other details that might be useful.

Was working fine yesterday. Today I tried to deploy the app I've been working on with my travis CI build and that's when I first encountered this error. When I tried to reproduce it at the most basic level on my own machine it gave me the same error. I'm not sure what could've changed since I had to version locked in to 1.0.0-beta.18. I have the angular cli globally installed on my machine at version 18 as well and it is working fine. It's only when I try to install it locally to a directory that I am running in to this.

kevinaud avatar Oct 28 '16 20:10 kevinaud

My bad! Wanted to close it as a dupe of https://github.com/angular/angular-cli/issues/2940

filipesilva avatar Nov 03 '16 17:11 filipesilva

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.