我得到一個錯誤,當我想在離子2啓動一個應用程序項目用:NPM錯誤2
ionic start name blank --v2
在這裏的錯誤:
One awesome Ionic app coming right up...
Downloading: https://github.com/driftyco/ionic2-app-base/archive/master.zip
[=============================] 100% 0.0s
Downloading: https://github.com/driftyco/ionic2-starter-blank/archive/master.zip
Installing Node Modules
Unable to run exec commandError: Command failed: C:\WINDOWS\system32\cmd.exe /s /c "npm install"
npm WARN package.json @ No description
npm WARN package.json @ No repository field.
npm WARN package.json @ No README data
npm WARN package.json @ No license field.
npm WARN optional dep failed, continuing [email protected]
npm WARN deprecated [email protected]: graceful-fs version 3 and before will fail on newer node releases. Please update to [email protected]^4.0.0 as soon as possible.
npm WARN deprecated [email protected]: [email protected]<3.0.0 is no longer maintained. Upgrade to [email protected]^4.0.0.
npm WARN deprecated [email protected]: graceful-fs version 3 and before will fail on newer node releases. Please update to [email protected]^4.0.0 as soon as possible.
npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm
npm WARN optional dep failed, continuing [email protected]
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v4.3.2
npm ERR! npm v2.14.12
npm ERR! path C:\Users\Next-Version\AppData\Roaming\npm-cache\xtend\4.0.1\package\package.json.9c277ab6532ec69d68e9da8f764c6a72
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall rename
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\Next-Version\AppData\Roaming\npm-cache\xtend\4.0.1\package\package.json.9c277ab6532ec69d68e9da8f764c6a72' -> 'C:\Users\Next-Version\AppData\Roaming\npm-cache\xtend\4.0.1\package\package.json'
npm ERR! at Error (native)
npm ERR! { [Error: EPERM: operation not permitted, rename 'C:\Users\Next-Version\AppData\Roaming\npm-cache\xtend\4.0.1\package\package.json.9c277ab6532ec69d68e9da8f764c6a72' -> 'C:\Users\Next-Version\AppData\Roaming\npm-cache\xtend\4.0.1\package\package.json']
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'rename',
npm ERR! path: 'C:\\Users\\Next-Version\\AppData\\Roaming\\npm-cache\\xtend\\4.0.1\\package\\package.json.9c277ab6532ec69d68e9da8f764c6a72',
npm ERR! dest: 'C:\\Users\\Next-Version\\AppData\\Roaming\\npm-cache\\xtend\\4.0.1\\package\\package.json',
npm ERR! parent: 'through2' }
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:\devcenter\rrpp\npm-debug.log
(CLI v2.0.0-beta.19)
Your system information:
Cordova CLI: 6.0.0
Ionic Version: 2.0.0-beta.3
Ionic CLI Version: 2.0.0-beta.19
Ionic App Lib Version: 2.0.0-beta.9
OS:
Node Version: v4.3.2
我試圖卸載和安裝的NodeJS和離子/科爾多瓦兩次,但獲得相同的結果。當我在嘗試完美之前嘗試使用離子2時,但在更新到最新版本之後未嘗試。
任何幫助?謝謝!
P.S:我有Windows 10 x64
嘗試運行終端的管理。右鍵單擊cmd並選擇「以管理員身份運行」 – Patrioticcow
這不是問題@Patrioticcow我是以管理員身份執行的。現在我正在嘗試卸載我的防病毒軟件。 – aluknot
可能是這樣的,但這是我在你的日誌中看到的錯誤 – Patrioticcow