2017-05-30 15 views
0

PhpStormにGulpをインストールする必要があります。Ubuntu 16.04でGulpをPhpStormにインストールするには?

マイOS:ubuntu 16.04。
マイPhpStorm:2016.3.3。

GulpをPhpStormにインストールするにはどうすればいいですか?

sudo apt-get install nodejs

表示エラー: E: Some packages could not be authenticated

は、実行このコマンドの後、このエラーを示しています。

は私がgulpfile.js

編集1と連携必要

編集2:実行sudo apt-get update

このエラーが表示さ:

W: GPG error: https://deb.nodesource.com/node_7.x xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1655A0AB68576280 
W: The repository 'https://deb.nodesource.com/node_7.x xenial InRelease' is not signed. 
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. 
N: See apt-secure(8) manpage for repository creation and user configuration details. 
W: The repository 'http://ppa.launchpad.net/chris-lea/node.js/ubuntu xenial Release' does not have a Release file. 
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. 
N: See apt-secure(8) manpage for repository creation and user configuration details. 
E: Failed to fetch http://ppa.launchpad.net/chris-lea/node.js/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found 
E: Some index files failed to download. They have been ignored, or old ones used instead. 

答えて

2

まずあなたがnodenpmをインストールする必要があります。 Linuxを使用して、あなたは、あなたががぶ飲みをインストールするには、次のコマンドを使用することができることをやった後

sudo apt-get update 
sudo apt-get install nodejs 
sudo apt-get install npm 

を使用することができます。

npm init 
npm install gulp-cli -g 
npm install gulp --save-dev 

これは、それぞれ以下のとおりです。新しいNPMプロジェクト を設定

  1. gulpコマンドをインストールし、コンピュータでグローバルに設定する必要があります。
  2. gulpをインストールしてgulpファイルにアクセスし、開発ツールとしてpackage.jsonファイルに追加します。

これで完了です。

JavaScriptの利点は、externパッケージまたはライブラリを実行するためにソースコードが必要なことです。あなたは、SaSSまたはSCSSを翻訳するために、ASP.NETアプリケーションでさえもすべてを組み合わせることができます。

+0

@Ali最初に 'sudo apt-get update'を試してもう一度やりますか?ここにあります:https://askubuntu.com/questions/75565/why-am-i-getting-authentication-errors-for-packages-from-an-ubuntu-repository –

+0

私は編集2を修正しました。今度はnodjsをインストールします: ) ありがとうございました :-) –

関連する問題