{"id":291,"date":"2015-01-13T00:06:45","date_gmt":"2015-01-12T15:06:45","guid":{"rendered":"https:\/\/www.xenos.jp\/~zen\/blog2\/?p=291"},"modified":"2018-01-08T00:08:34","modified_gmt":"2018-01-07T15:08:34","slug":"post-291","status":"publish","type":"post","link":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/2015\/01\/13\/post-291\/","title":{"rendered":"FreeBSD 9.3 \u306b Node.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08\uff0bExpress\u3082\uff09"},"content":{"rendered":"<p>\u3061\u3087\u3063\u3068\u524d\u306b\u3001FreeBSD9.3\u306bMongoDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u306e\u3067\u3001<br \/>\n\u4eca\u5ea6\u306f\u3001Node.js\u3068Express\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<br \/>\n\u3053\u308c\u3067MEAN\u30b9\u30bf\u30c3\u30af\u74b0\u5883\u306b\u5fc5\u8981\u306a\u3082\u306e\u306f\u63c3\u3046\u3002<\/p>\n<p><\/p>\n<p><b>\u25a0Node.js\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/b><\/p>\n<p>ports\u304b\u3089\u3001Node.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<pre>\r\n root@viola:~ # cd \/usr\/ports\/www\/node\r\n root@viola:\/usr\/ports\/www\/node # ls\r\n Makefile        files           pkg-message\r\n distinfo        pkg-descr       pkg-plist\r\n root@viola:\/usr\/ports\/www\/node #\r\n root@viola:\/usr\/ports\/www\/node # make install\r\n<\/pre>\n<p><b>\u25a0npm\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/b><\/p>\n<p>npm\u3082ports\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3057\u305f\u306e\u3060\u304c\u3001developer\u30c4\u30fc\u30eb\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u3053\u3051\u308b\u3002<br \/>\n\u4ed5\u65b9\u304c\u306a\u3044\u306e\u3067\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<pre>\r\n root@viola:\/usr\/ports\/www\/npm # pkg install npm\r\n Updating FreeBSD repository catalogue...\r\n FreeBSD repository is up-to-date.\r\n All repositories are up-to-date.\r\n Updating database digests format: 100%\r\n The following 1 packages will be affected (of 0 checked):\r\n \r\n New packages to be INSTALLED:\r\n         npm: 2.1.16\r\n \r\n The process will require 7 MB more space.\r\n 1 MB to be downloaded.\r\n \r\n Proceed with this action? [y\/N]: y\r\n Fetching npm-2.1.16.txz: 100%    1 MB 481.7k\/s    00:03\r\n Checking integrity... done (0 conflicting)\r\n [1\/1] Installing npm-2.1.16...\r\n [1\/1] Extracting npm-2.1.16: 100%\r\n root@viola:\/usr\/ports\/www\/npm #\r\n<\/pre>\n<p><b>\u25a0Express\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/b><\/p>\n<p>npm\u3092\u4f7f\u3063\u3066\u3001JavaScript\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30afExpress\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<br \/>\n\u304b\u306a\u308a\u7c21\u5358\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u305f\u3002<\/p>\n<pre>\r\n root@viola:~ # npm install express\r\n express@4.10.6 node_modules\/express\r\n tqq utils-merge@1.0.0\r\n tqq merge-descriptors@0.0.2\r\n tqq fresh@0.2.4\r\n tqq cookie@0.1.2\r\n tqq escape-html@1.0.1\r\n tqq range-parser@1.0.2\r\n tqq cookie-signature@1.0.5\r\n tqq finalhandler@0.3.2\r\n tqq vary@1.0.0\r\n tqq media-typer@0.3.0\r\n tqq parseurl@1.3.0\r\n tqq methods@1.1.0\r\n tqq serve-static@1.7.2\r\n tqq content-disposition@0.5.0\r\n tqq path-to-regexp@0.1.3\r\n tqq depd@1.0.0\r\n tqq qs@2.3.3\r\n tqq etag@1.5.1 (crc@3.2.1)\r\n tqq debug@2.1.1 (ms@0.6.2)\r\n tqq on-finished@2.1.1 (ee-first@1.1.0)\r\n tqq proxy-addr@1.0.4 (forwarded@0.1.0, ipaddr.js@0.1.5)\r\n tqq send@0.10.1 (destroy@1.0.3, ms@0.6.2, mime@1.2.11)\r\n tqq accepts@1.1.4 (negotiator@0.4.9, mime-types@2.0.7)\r\n mqq type-is@1.5.5 (mime-types@2.0.7)\r\n root@viola:~ #\r\n<\/pre>\n<p>FreeBSD\u3067\u3082\u7c21\u5358\u306bMEAN\u74b0\u5883\u306f\u4f5c\u308c\u308b\u306a\u3002<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3061\u3087\u3063\u3068\u524d\u306b\u3001FreeBSD9.3\u306bMongoDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u306e\u3067\u3001 \u4eca\u5ea6\u306f\u3001Node.js\u3068Express\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002 \u3053\u308c\u3067MEAN\u30b9\u30bf\u30c3\u30af\u74b0\u5883\u306b\u5fc5\u8981\u306a\u3082\u306e\u306f\u63c3\u3046\u3002 \u25a0Node.js\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb port [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[50,7],"tags":[],"class_list":["post-291","post","type-post","status-publish","format-standard","hentry","category-freebsd","category-tech-memo"],"_links":{"self":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/291","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/comments?post=291"}],"version-history":[{"count":1,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/291\/revisions"}],"predecessor-version":[{"id":292,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/291\/revisions\/292"}],"wp:attachment":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/media?parent=291"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/categories?post=291"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/tags?post=291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}