Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing modules when ng new <app> #1207

Closed
lightsonupstairs opened this issue Jun 25, 2016 · 2 comments · Fixed by #1250
Closed

missing modules when ng new <app> #1207

lightsonupstairs opened this issue Jun 25, 2016 · 2 comments · Fixed by #1250

Comments

@lightsonupstairs
Copy link

Please provide us with the following information:

  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
    windows 7
    npm 2.15.5
    node 4.4.5
  1. Versions. Please run ng --version. If there's nothing outputted, please
    run in a Terminal:
    node --version
    And paste the result here.
    angular-cli: 1.0.0-beta.8
  2. Repro steps. Was this an app that wasn't created using the CLI? What change did you
    do on your code? etc.
    Creating a new ng app get a list of missing modules(one at time).
    "exists-sync": "0.0.3",
    "object-assign":"4.1.0",
    "minimatch":"3.0.2",
    "walk-sync":"0.2.6",
    "through":"2.3.8"

I followed the steps in the read me for uninstalling and reinstall -g latest.
used the ng new command and received a list of missing modules (listed above)
exact error
Error: Cannot find module 'exists-sync'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (c:\ng2\cli2\cli2\node_modules\angular-cli\node_modul
s\ember-cli\lib\models\project.js:11:26)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)

c:\ng2\cli2\cli2>npm install -g exists-sync
[email protected] C:\Users\admin\AppData\Roaming\npm\node_modules\exists-sync

c:\ng2\cli2\cli2>ng serve
module.js:327
throw err;
^

Error: Cannot find module 'exists-sync'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (c:\ng2\cli2\cli2\node_modules\angular-cli\node_modul
s\ember-cli\lib\models\project.js:11:26)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)

c:\ng2\cli2\cli2>npm install

  1. The log given by the failure. Normally this include a stack trace and some
    more information.

Did the uninstall remove these files and not replace them during beta.8 install.

  1. Mention any other details that might be useful.

Solution: install the modules above with npm install -g and add to package.json --> the run npm install inside your new app folder with the updated package.json.


Thanks! We'll be in touch soon.

@Splaktar
Copy link
Member

Duplicate of #1186. This should be closed.

filipesilva added a commit to filipesilva/angular-cli that referenced this issue Jun 30, 2016
The npm task from our current ember-cli install uses npm 2.x.x, which was causing issues with some of the dependencies.

This PR copies over all files needed for the npm-install task but uses a local 3.10.2 npm version instead.

Fix angular#1186
Fix angular#1191
Fix angular#1201
Fix angular#1209
Fix angular#1207
Fix angular#1248
filipesilva added a commit to filipesilva/angular-cli that referenced this issue Jun 30, 2016
The npm task from our current ember-cli install uses npm 2.x.x, which was causing issues with some of the dependencies.

This PR copies over all files needed for the npm-install task but uses a local 3.10.2 npm version instead.

Fix angular#1186 (main issue)
Fix angular#1191
Fix angular#1201
Fix angular#1209
Fix angular#1207
Fix angular#1248
filipesilva added a commit that referenced this issue Jun 30, 2016
The npm task from our current ember-cli install uses npm 2.x.x, which was causing issues with some of the dependencies.

This PR copies over all files needed for the npm-install task but uses a local 3.10.2 npm version instead.

Fix #1186 (main issue)
Fix #1191
Fix #1201
Fix #1209
Fix #1207
Fix #1248
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants