https://medium.com/@dihuta/install-nodejs-on-chromebook-c17677874d81 このサイトを参考にした。
nodeいれる
crew install node
これ実行してみても、
node -v npm -v
node
npm
はないと認識されて動かなかった・・。
インストール結果は
Building from source, this may take a while... Rename all *.la files to *.la_tmp Preconfiguring package... Rename all *.la_tmp files back to *.la Installing... Performing post-install... Nodebrew completion support is available for the following shells: bash fish zsh To add nodebrew completion for bash, execute the following: echo '# nodebrew completion' >> ~/.bashrc echo 'if [ -f /usr/local/share/nodebrew/completions/bash/nodebrew-completion ]; then' >> ~/.bashrc echo ' source /usr/local/share/nodebrew/completions/bash/nodebrew-completion' >> ~/.bashrc echo 'fi' >> ~/.bashrc source ~/.bashrc To complete the installation, execute the following: echo 'export PATH=$HOME/.nodebrew/current/bin:$PATH' >> ~/.bashrc && source ~/.bashrc To install the latest node, execute: nodebrew install-binary latest nodebrew use latest To uninstall, execute the following: crew remove nodebrew rm -rf /usr/local/share/nodebrew
ってある。
ってあるので、
echo '# nodebrew completion' >> ~/.bashrc echo 'if [ -f /usr/local/share/nodebrew/completions/bash/nodebrew-completion ]; then' >> ~/.bashrc echo ' source /usr/local/share/nodebrew/completions/bash/nodebrew-completion' >> ~/.bashrc echo 'fi' >> ~/.bashrc source ~/.bashrc
は一応行った。~/.bashrc
に追記されるだけだが・・
ここを見た。 https://github.com/skycocker/chromebrew/issues/2086
これの
$ nodebrew install-binary 9 $ nodebrew use 9
で認識された。