2017-11-26 14 views


C:\Users\Lenovo\Desktop\first app\RoomBooking>cordova platform add android 

Using cordova-fetch for [email protected]~6.3.0 
Error: Failed to fetch platform [email protected]~6.3.0 
Probably this is either a connection problem, or platform spec is incorrect. 
Check your connection and platform name/version/URL. 
Error: cmd: Command failed with exit code 4294963248 Error output: 
npm ERR! path C:\Users\Lenovo\Desktop\first app\RoomBooking\node_modules\.stagin 
npm ERR! code EPERM 
npm ERR! errno -4048 
npm ERR! syscall unlink 
npm ERR! Error: EPERM: operation not permitted, unlink 'C:\Users\Lenovo\Desktop\ 
first app\RoomBooking\node_modules\.staging' 
npm ERR! { Error: EPERM: operation not permitted, unlink 'C:\Users\Lenovo\Deskt 
op\first app\RoomBooking\node_modules\.staging' 
npm ERR! stack: 'Error: EPERM: operation not permitted, unlink \'C:\\Users\\Le 
novo\\Desktop\\first app\\RoomBooking\\node_modules\\.staging\'', 
npm ERR! errno: -4048, 
npm ERR! code: 'EPERM', 
npm ERR! syscall: 'unlink', 
npm ERR! path: 'C:\\Users\\Lenovo\\Desktop\\first app\\RoomBooking\\node_modul 
es\\.staging' } 
npm ERR! 
npm ERR! Please try running this command again as root/Administrator. 

npm ERR! A complete log of this run can be found in: 
npm ERR!  C:\Users\Lenovo\AppData\Roaming\npm-cache\_logs\2017-11-26T21_56_46 



おそらく、これは接続の問題か、プラットフォームの仕様が間違っている可能性があります。接続とプラットフォーム名/バージョン/ URLを確認する –



おそらくnpmの問題です。 npmをダウングレードして、次のコマンドを実行してください。

npm install -g [email protected]