簡體   English   中英

錯誤:EPERM:安裝Ionic和Cordova時不允許進行操作

[英]Error: EPERM: operation not permitted while installing ionic and cordova

我花了最后幾個小時嘗試安裝ionic和cordova,但我不斷收到以下錯誤。 我不知道出什么問題或如何解決它,我嘗試清除緩存並將環境變量設置為正確的路徑。 有人遇到過這個問題嗎?

npm ERR! Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm ERR!     at Error (native)
npm ERR!  { [Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging']
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'mkdir',
npm ERR!   path: 'C:\\Program Files\\nodejs\\node_modules\\.staging' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\noor\eggly-ionic\npm-debug.log

您需要以管理員身份啟動命令提示符

  1. 在“ 開始搜索”框中,鍵入cmd
  2. 右鍵單擊“ 命令提示符” ,然后單擊“以管理員身份運行”
  3. 如果出現“ 用戶帳戶控制”對話框,請確認它顯示的操作是您想要的,然后單擊“ 繼續”

另外,請確保暫時禁用反惡意軟件和防病毒軟件。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM