我正嘗試在桌面上首次安裝ionic 3和cordova。 我使用Windows 7錯誤:EPERM:操作不允許安裝ionic 3和cordova
npm install -g ionic cordova
表明我這個錯誤:
npm WARN deprecated [email protected]: Use uuid module instead
C:\Users\amir\AppData\Roaming\npm\cordova -> C:\Users\amir\AppData\Ro
C:\Users\amir\AppData\Roaming\npm\ionic -> C:\Users\amir\AppData\Roam
npm ERR! path C:\Users\amir\AppData\Roaming\npm\node_modules\ionic\no
.json
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink 'C:\Users\amir
s\fsevents\node_modules\ansi-regex\package.json'
npm ERR! at Error (native)
npm ERR! { Error: EPERM: operation not permitted, unlink 'C:\Users\a
ules\fsevents\node_modules\ansi-regex\package.json'
npm ERR! at Error (native)
npm ERR! stack: 'Error: EPERM: operation not permitted, unlink \'C:
\ionic\\node_modules\\fsevents\\node_modules\\ansi-regex\\package.jso
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path: 'C:\\Users\\amir\\AppData\\Roaming\\npm\\node_module
i-regex\\package.json' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
我試着在管理員模式進入Windows PowerShell中,但問題並沒有解決。 有什麼想法嗎?