0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Mean備忘録

Last updated at Posted at 2016-03-17

Node.js

Node.js ->
https://nodejs.org/en/
よりダウンロードし、インストール完了
同じくnpmもインストールされる

http://nodeschool.io/ja/#workshoppers
を見ながらやる
コマンド

username$ npm install -g learnyounode

結果

npm ERR! tar.unpack untar error /Users/numami/.npm/learnyounode/3.2.0/package.tgz
npm ERR! Darwin 15.2.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "learnyounode"
npm ERR! node v4.2.4
npm ERR! npm v2.14.12
npm ERR! path /usr/local/lib/node_modules/learnyounode
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall mkdir
npm ERR! Error: EACCES: permission denied, mkdir '/
...

コマンドを実行すると上記のエラー
エラーコード「EACCES」は、ログインしたIDでアクセス権限や使用権限がない場合に出るので [sudo] をつけて実行。
コマンド

username$ sudo npm install -g learnyounode

結果
無事インストールされた

/usr/local/bin/learnyounode -> /usr/local/lib/node_modules/learnyounode/bin/learnyounode
learnyounode@3.2.0 /usr/local/lib/node_modules/learnyounode
├── duplexer@0.1.1
├── after@0.8.1
├── boganipsum@0.1.0
├── rimraf@2.2.8
├── through@2.3.8
├── combined-stream@0.0.7 (delayed-stream@0.0.5)
├── colors-tmpl@1.0.0 (colors@1.0.3)
├── through2@0.6.5 (xtend@4.0.1, readable-stream@1.0.33)
├── concat-stream@1.4.10 (inherits@2.0.1, typedarray@0.0.6, readable-stream@1.1.13)
├── bl@0.9.4 (readable-stream@1.0.33)
├── workshopper-wrappedexec@0.1.2 (xtend@2.1.2)
├── through2-map@1.4.0 (xtend@3.0.0, terminus@1.0.12, through2@0.5.1)
├── hyperquest@1.0.1 (duplexer2@0.0.2)
├── workshopper-exercise@2.5.3 (tuple-stream@0.0.2, split@0.3.3, visualwidth@0.0.1, chalk@0.4.0, xtend@2.1.2, through2@0.4.2, i18n-core@1.3.3)
└── workshopper-adventure@4.4.3 (xtend@4.0.1, visualwidth@0.1.0, split@1.0.0, string-to-stream@1.0.1, combined-stream@1.0.5, chalk@1.1.1, mkdirp@0.5.1, i18n-core@2.1.1, concat-stream@1.5.1, through2@2.0.0, rimraf@2.5.0, simple-terminal-menu@1.1.1, latest-version@2.0.0, msee-preview@0.4.1, commandico@2.0.0)

コマンド

username$ javascripting

結果
javascript のワークショッパーを起動できた

JAVASCRIPTING
Select an exercise and hit Enter to begin
─────────────────────────────────────────────────────────────────────────
» INTRODUCTION
» VARIABLES
» STRINGS
...

javascriptとnode.jsの演習
jsの演習(javascripting)は簡単だったけど、node.jsの演習(learnyounode)の方は少し難しかった

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?