2017-06-09 2 views
0

をインストールしていなかった私は、次のdevDependenciesが言及されているファイルpackage.jsonている:私はインストールNPM実行時に:何も

{ "name": "tabs-torico", 
    "version": "1.0.0", 
    "dependencies": {}, 
    "devDependencies": { 
    "grunt": "~0.4.2", 
"grunt-angular-templates": "~0.5.1", 
"grunt-autoprefixer": "~0.4.0", 
"grunt-cli": "~0.1.11", 
"grunt-concurrent": "~0.4.1", 
"grunt-connect-proxy": "~0.1.7", 
"grunt-contrib-clean": "~0.5.0", 
"grunt-contrib-compass": "~0.6.0", 
"grunt-contrib-concat": "~0.3.0", 
"grunt-contrib-connect": "~0.5.0", 
"grunt-contrib-copy": "~0.4.1", 
"grunt-contrib-cssmin": "~0.7.0", 
"grunt-contrib-htmlmin": "~0.1.3", 
"grunt-contrib-jshint": "~0.7.1", 
"grunt-contrib-uglify": "~0.2.0", 
"grunt-contrib-watch": "^0.5.3", 
"grunt-karma": "~0.6.2", 
"grunt-newer": "~0.5.4", 
"grunt-ngmin": "~0.0.2", 
"grunt-protractor-runner": "~0.2.1", 
"grunt-rev": "~0.1.0", 
"grunt-usemin": "~2.0.0", 
"jasmine-core": "^2.6.2", 
"jshint-stylish": "~0.1.3", 
"karma": "^0.10.10", 
"karma-chrome-launcher": "^0.1.12", 
"karma-html2js-preprocessor": "~0.1.0", 
"karma-jasmine": "^0.1.6", 
"karma-ng-html2js-preprocessor": "~0.1.0", 
"karma-ng-scenario": "~0.1.0", 
"karma-requirejs": "~0.2.1", 
"karma-script-launcher": "~0.1.0", 
"load-grunt-tasks": "~0.2.0", 
"phantomjs": "^2.1.7", 
"phantomjs-prebuilt": "^2.1.14", 
"protractor": "~0.18.1", 
"requirejs": "~2.1.10", 
"time-grunt": "~0.2.1" 
}, 
"engines": { 
"node": ">=0.8.0" 
}, 
"scripts": { 
    "test": "grunt test" 
} 
} 

を今は私に次のエラーを与える:

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 
[email protected]:pipobscure/fseve 
nts#7dcdf9fa3f8956610fd6f69f72c67bace2de7138 
(node_modules\chokidar\node_modules 
\fsevents): 
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 
[email protected] 
0.2.1: wanted {"os":"darwin","arch":"any"} (current: 
{"os":"win32","arch":"x64"} 
) 
npm WARN [email protected] requires a peer of [email protected]~0.1.0 
but none was installed. 
npm WARN [email protected] requires a peer of [email protected]~0.1.0 but 
none was installed. 
npm WARN [email protected] requires a peer of [email protected]~0.1.0 
but none was installed. 

npm installを実行すると、package.jsonに記載されているすべての依存関係がインストールされるか、またはjasmine-coreとkarma-jasmineを別々にインストールする必要がありますか?

答えて

0

npm installは、package.jsonで指定されているすべての依存関係をインストールします。あなたは、あなたのnode_modulesフォルダにあるはずです。

0

あなたのバージョンのカルマには問題があります。 package.jsonファイルには、現在のカルマの代わりに次の行が含まれています。また、あなたがカルマ - クロム - ランチャー を使用している場合は、同様にあなたのpackage.jsonファイルでのカルマの新バージョンとしては、それが付属していないことを含める必要があることに注意することが重要

"karma": "^0.11.14" 

です。

次の行も含めます。

"karma-chrome-launcher": "^0.1.2" 

これがあなたの問題を解決することを願っています。

関連する問題