2016-12-16 13 views
2

タイピングを実行している私は常にエラーを取得するコマンド:タイピング:でSyntaxError:予期しないトークン=>

AppData\Roaming\npm\node_modules\typings\node_modules\strip-bom\index.js:2 
module.exports = x => { 
        ^^ 
SyntaxError: Unexpected token => 
    at exports.runInThisContext (vm.js:73:16) 
    at Module._compile (module.js:443:25) 
    at Object.Module._extensions..js (module.js:478:10) 
    at Module.load (module.js:355:32) 
    at Function.Module._load (module.js:310:12) 
    at Module.require (module.js:365:17) 
    at require (module.js:384:17) 
    at Object.<anonymous> (AppData\Roaming\npm\node_modules\typings\node_modules\typings-core\dist\utils\fs.js:5:16) 
    at Module._compile (module.js:460:26) 
    at Object.Module._extensions..js (module.js:478:10) 

は、これまでのところ私は再インストールタイピング(V 2.0.0)、npm cache cleanとすべてのことを試してみましたが、それはdoesnのそれを修正するようだ。

+0

私は同じ問題を抱えています。あなたはこれに対する解決策を見つけることができましたか? – Inx51

+1

私のnode.jsバージョンをアップグレードすると、これは私のために解決されたことが判明しました.. node = new version-hell? – Inx51

+0

古くなったバージョンのソフトウェアを「バージョン - 地獄」として実行するにはどうすればよいですか? – JJJ

答えて

0

Windowsでは、ノードバージョン0.12を取得し、アンインストールしてversoin 6.9.xを再インストールしました。問題は解決しました。ありがとう。

0

ノードの新しいバージョンをnode pageからインストールするだけで、バイナリファイルが上書きされるため、最初にアンインストールする必要はありません。

関連する問題