# CLI throwing error on app creation

**URL:** <https://forum.ionicframework.com/t/cli-throwing-error-on-app-creation/37255>\
**Category:** ionic-v1\
**Created:** [November 17, 2015, 3:15pm UTC](https://forum.ionicframework.com/t/cli-throwing-error-on-app-creation/37255 "2015-11-17T15:15:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rscorer](https://avatars.discourse-cdn.com/v4/letter/r/9f8e36/32.png) [@rscorer](https://forum.ionicframework.com/u/rscorer)\
**Post date:** [November 17, 2015, 3:15pm UTC](https://forum.ionicframework.com/t/cli-throwing-error-on-app-creation/37255/1 "2015-11-17T15:15:08Z")

</div>

` ionic start myApp

Error: Cannot find module 'npm-registry-client’  
at Function.Module.\_resolveFilename (module.js:337:15)  
at Function.Module.\_load (module.js:287:25)  
at Module.require (module.js:366:17)  
at require (module.js:385:17)  
at Object. (/usr/local/lib/node\_modules/ionic/node\_modules/ionic-app-lib/node\_modules/ionic-cordova-lib/node\_modules/npm/lib/cache/caching-client.js:9:22)  
at Module.\_compile (module.js:425:26)  
at Object.Module.\_extensions…js (module.js:432:10)  
at Module.load (module.js:356:32)  
at Function.Module.\_load (module.js:311:12)  
at Module.require (module.js:366:17)

Cannot find module ‘npm-registry-client’ (CLI v1.7.8)

Your system information:

Cordova CLI: Not installed  
Ionic CLI Version: 1.7.8  
Ionic App Lib Version: 0.6.4  
ios-deploy version: 1.8.2  
ios-sim version: 5.0.3  
OS: Mac OS X El Capitan  
Node Version: v5.0.0  
Xcode version: Xcode 7.1.1 Build version 7B1005

`

Its a fresh install of node and npm, not sure what to do to fix this.

Any suggestions? 😄

Thanks

---

<div class="post-metadata">

**Author:** ![rscorer](https://avatars.discourse-cdn.com/v4/letter/r/9f8e36/32.png) [@rscorer](https://forum.ionicframework.com/u/rscorer)\
**Post date:** [November 17, 2015, 5:25pm UTC](https://forum.ionicframework.com/t/cli-throwing-error-on-app-creation/37255/2 "2015-11-17T17:25:22Z")

</div>

Sigh.

$ npm install nom-registry-client seems to have fixed it. Should that not be listed as a dependency somewhere?

---

<div class="post-metadata">

**Author:** ![markbloomfield](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/markbloomfield/32/84974_2.png) [@markbloomfield](https://forum.ionicframework.com/u/markbloomfield)\
**Post date:** [November 23, 2015, 6:56am UTC](https://forum.ionicframework.com/t/cli-throwing-error-on-app-creation/37255/3 "2015-11-23T06:56:30Z")

</div>

Wanted to start my first Ionic project today, so updated all supporting frameworks, only to run into this exact issue.

Apparently there’s a fix coming though; [https://github.com/npm/npm/issues/10492](https://github.com/npm/npm/issues/10492)

Is there no other workaround for this? Really need to get started on a project, but now seems I can’t?

---

<div class="post-metadata">

**Author:** ![fotiadissergios](https://avatars.discourse-cdn.com/v4/letter/f/c77e96/32.png) [@fotiadissergios](https://forum.ionicframework.com/u/fotiadissergios)\
**Post date:** [November 24, 2015, 6:17pm UTC](https://forum.ionicframework.com/t/cli-throwing-error-on-app-creation/37255/4 "2015-11-24T18:17:50Z")

</div>

I had the same issue. In order to resolve i followed the following steps:

1. Completely uninstalled Node.js
2. Deleted npm folder from usr/…/npm/node\_modules
3. Clean installed Node.js again from official node.js site (windows installer in my case). During installation i selected to also install default version of npm
4. Installed version 3.4.0 of npm with command npm install -g npm@3.4.0
5. Installed npm-registry-client with command npm install -g npm-registry-client

After that command ionic start blank succeeded with no errors.
