2016-03-19 36 views
2

için güncellemeden sonra kurulum başarısız oluyor, Windows'larımı güncelledikten sonra, Windows 10'a, npm komutlarını çalıştıramıyorum.npm, windows 10

ember-cli yüklemeye çalışıyorum ama birçok hatam var.

F:\DEV\Ember\Ember1>npm install -g ember-cli 
SyntaxError: Error parsing C:\Users\vitorpfn\AppData\Roaming\npm\node_modules\npm\node_modules\request\node_modules\extend\package.json: Unexpected token p 
    at Object.parse (native) 
    at readPackage (module.js:81:52) 
    at tryPackage (module.js:91:13) 
    at Function.Module._findPath (module.js:153:20) 
    at Function.Module._resolveFilename (module.js:323:25) 
    at Function.Module._load (module.js:276:25) 
    at Module.require (module.js:353:17) 
    at require (internal/module.js:12:17) 
    at Object.<anonymous> (C:\Users\vitorpfn\AppData\Roaming\npm\node_modules\npm\node_modules\request\index.js:17:29) 
    at Module._compile (module.js:409:26) 
npm ERR! Windows_NT 10.0.10586 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\vitorpfn\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "ember-cli" 
npm ERR! node v4.4.0 
npm ERR! npm v3.5.3 
npm ERR! path C:\Users\vitorpfn\AppData\Roaming\npm\node_modules\npm\node_modules\request\node_modules\extend\package.json 

npm ERR! Error parsing C:\Users\vitorpfn\AppData\Roaming\npm\node_modules\npm\node_modules\request\node_modules\extend\package.json: Unexpected token p 
npm ERR! 
npm ERR! If you need help, you may report this error at: 
npm ERR!  <https://github.com/npm/npm/issues> 

Düğümü zaten yükledim ve yeniden yükledim ancak sorunlar hala aynı.

Neler eksik?

cevap

2

Sen installing ember-cli on Windows here veya here

En önemli adımlar için talimatları bulabilirsiniz:

  1. Yönetici olarak the official installer
  2. daima açık PowerShell veya CMD node.js yükleyin.
  3. yükleyin yönetici olarak Git for Windows
  4. Açık PowerShell yükleyin ve $ Set-ExecutionPolicy Unrestricted -scope Process
  5. çalıştırmak Kor-CLI-Pencereler: $ npm install -g ember-cli-windows
  6. çalıştırın Kor-CLI-Pencereler: $ ember-cli-windows
  7. dışarı yapın ve Windows'ta
  8. tekrar oturum
  9. Güncelleştirme npm: $ npm install -g npm
  10. Yüklemeyi kaldırın: $ npm install -g ember-cli

Belirli ayarlar için PowerShell'i kullanmanız gerekir, ancak Git Shell'i kullanırsanız, uzun vadede, muhtemelen daha iyi.

İlgili konular