2017-09-05 47 views
0

安裝插件我嘗試經由離子2.3.0不能經由NPM

npm install --save @ionic-native/network

過程來安裝插件 「科爾多瓦-插件-網絡的信息」(如管理員)在停止:

/ postinstall: info lifecycle @ionic-native/[email protected]~postinstall: @ionic-native/[email protected]

,我也得到了以下錯誤:

npm ERR! path C:\path\node_modules\fsevents\node_modules\ansi-regex\package.json 
npm ERR! code EPERM 
npm ERR! errno -4048 
npm ERR! syscall unlink 
npm ERR! Error: EPERM: operation not permitted, unlink 'C:\path\node_modules\fsevents\node_modules\ansi-regex\package.json' 
npm ERR!  at Error (native) 
npm ERR! { Error: EPERM: operation not permitted, unlink 'C:\path\node_modules\fsevents\node_modules\ansi-regex\package.json' 
npm ERR!  at Error (native) 
npm ERR! stack: 'Error: EPERM: operation not permitted, unlink \'C:\\path\\node_modules\\fsevents\\node_modules\\ansi-regex\\package.json\'\n  
at Error (native)', 
npm ERR! errno: -4048, 
npm ERR! code: 'EPERM', 
npm ERR! syscall: 'unlink', 
npm ERR! path: 'C:\\path\\node_modules\\fsevents\\node_modules\\ansi- 
regex\\package.json' } 
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\username\AppData\Roaming\npm-cache\_logs\2017-09-05T09_43_58_528Z-debug.log 

信息:

CLI包:(C:\用戶\ username.npm,包\ node_modules)

@ionic/cli-utils : 1.9.2 
ionic (Ionic CLI) : 3.9.2 

全球套餐:

Cordova CLI : 7.0.1 

本地套餐:

@ionic/app-scripts : 1.1.4 
Cordova Platforms : android 6.2.1 
Ionic Framework : ionic-angular 2.3.0 

系統:

Node : v6.9.4 
npm : 5.4.0 
OS : Windows 10 

請幫忙。

+0

同樣的問題,如果我嘗試 「NPM我」 :-( – hydrococcus

回答