2

的应用程序,我刚开始离子和希望开始创建一个应用程序,但在安装科尔多瓦依赖条件它给了我下面的错误:出错创建离子

[email protected]:/home/asc# ionic start app1 
? What starter would you like to use: conference 
? Would you like to integrate your new app with Cordova to target native iOS and 
Android? Yes 
✔ Creating directory ./app1 - done! 
[INFO] Fetching app base 
     (https://github.com/ionic-team/ionic2-app-base/archive/master.tar.gz) 
✔ Downloading - done! 
[INFO] Fetching starter template conference 
     (https://github.com/ionic-team/ionic-conference-app/archive/master.tar.gz) 
✔ Downloading - done! 
✔ Updating package.json with app details - done! 
✔ Creating configuration file ionic.config.json - done! 
[INFO] Installing dependencies may take several minutes! 
> npm install 
✖ Running command - failed! 
[ERROR] An error occurred while running npm install (exit code 1): 

     npm ERR! code EINTEGRITY 
     npm ERR! sha1-3hnuc77yGrPAdAo3sz22JGS6ves= integrity checksum failed 
     when using sha1: wanted sha1-3hnuc77yGrPAdAo3sz22JGS6ves= but got 
     sha1-ZON8WQs6HaRM5U/GT5PKi7Nbgfg=. (4998 bytes) 

     npm ERR! A complete log of this run can be found in: 
     npm ERR! /root/.npm/_logs/2017-08-10T15_04_19_085Z-debug.log 

我该如何解决这个问题?

+1

尝试'npm缓存clean --force' –

+0

@ mohamad-rabee您的评论做了魔法人!万分感谢! – ali2569

+0

不客气 –

回答

1
npm cache clean --force 

这一个做了魔术!