ユーザ用ツール

サイト用ツール


javascript:nodejs

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
javascript:nodejs [2018/12/19 09:38] – [コマンド] takajavascript:nodejs [2018/12/19 09:44] (現在) – [コマンド] taka
行 23: 行 23:
 package.jsonはインストールする・したパッケージを管理するためのもの。 package.jsonはインストールする・したパッケージを管理するためのもの。
  
-<sxh bash gutter: false;> +  $ npm init
-$ npm init +
-</sxh>+
  
-<sxh bash gutter: false;> +npm initを実行すると対話型で以下項目を質問されるが、すべてEnterキーでスキップすることもできる。 
-package name: (npmtest)  + 
-version: (1.0.0)  +  package name: (npmtest)  
-description:  +  version: (1.0.0)  
-entry point: (index.js)  +  description:  
-test command:  +  entry point: (index.js)  
-git repository:  +  test command:  
-keywords:  +  git repository:  
-author:  +  keywords:  
-license: (ISC) +  author:  
-</sxh>+  license: (ISC) 
 + 
 +最後にpackage.jsonをこの内容で書き込んでいいかと聞かれるのでyesとタイプする。 
 + 
 +  About to write to /Users/koketsu/Desktop/npmtest/package.json: 
 +   
 +  { 
 +    "name": "npmtest", 
 +    "version": "1.0.0", 
 +    "description": "", 
 +    "main": "index.js", 
 +    "scripts":
 +      "test": "echo \"Error: no test specified\" && exit 1" 
 +    }, 
 +    "author": "", 
 +    "license": "ISC" 
 +  } 
 +   
 +  Is this OK? (yes) 
javascript/nodejs.1545179907.txt.gz · 最終更新: 2018/12/19 09:38 by taka