简体   繁体   中英

Error installing Ionic using npm

I am new to Ionic framework. As a starter I installed cordova using npm as npm install -g cordova which installed 6.2.0 successfully. I got following error when installing ionic as npm install -g ionic .

在此处输入图片说明

npm: 3.10.5 node: 6.10.2

I also re-installed node, but that dint help me. When I write ionic in cmd i get following error :

在此处输入图片说明

I dont know what is the issue with npm or anything else. Any help would be appreciated!

Steps you should do:

npm cache clean
npm set registry https://registry.npmjs.org/
npm set registry http://registry.npmjs.org/
npm install -g ionic

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM