2016-03-19 37 views
2

私のウィンドウをWindows 10にアップデートした後、npmコマンドを実行できません。npmのインストールがWindows 10のアップデート後に失敗する

ember-cliをインストールしようとしていますが、多くのエラーが発生しました。

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> 

私はすでにノードをアンインストールしてインストールしますが、それでも問題は同じです。

私には何が欠けていますか?

答えて

2

あなたはinstalling ember-cli on Windows hereまたはhere

最も重要なステップのための指示を見つけることができます:

  1. を管理者としてthe official installer
  2. 常にオープンのPowerShellまたはCMDからのNode.jsをインストールします。
  3. 管理者としてGit for Windows
  4. オープンPowerShellをインストールし、$ Set-ExecutionPolicy Unrestricted -scope Process
  5. エンバー-CLI-のWindowsをインストールし実行します。$ npm install -g ember-cli-windows
  6. ランエンバー-CLI-のWindows:$ ember-cli-windows
  7. ログアウトして、あなたのWindowsの
  8. に再度ログインを
  9. アップデートnpm:​​
  10. ember-cliをインストールしてください。$ npm install -g ember-cli

特定の設定ではPowerShellを使用する必要がありますが、長期的には、おそらくGit Shellを使用する方が良いでしょう。

関連する問題