1.“/usr/bin/env: node: 没有那个文件或目录”
解决办法:sudo ln -s /usr/bin/nodejs /usr/bin/node
参考:ubuntu中出现错误:“/usr/bin/env: node: 没有那个文件或目录”的解决
sudo ln -s /usr/bin/nodejs /usr/bin/node
因为是使用的apt-get install 方式安装,所以出现以上问题。
2.unable to access GITHUB with bower install
bower install 时出现如下错误:
more...<br>bower bootstrap#^3.3.4 resolved https://github.com/twbs/bootstrap.git#3.3.6
bower angular-animate#^1.5.5 ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/angular/bower-angular-animate.git", exit code of #128 fatal: unable to access 'https://github.com/angular/bower-angular-animate.git/': GnuTLS recv error (-9): A TLS packet with unexpected length was received.
Additional error details:
fatal: unable to access 'https://github.com/angular/bower-angular-animate.git/': GnuTLS recv error (-9): A TLS packet with unexpected length was received.
解决办法:git config --global url."https://".insteadOf git://
3.EACCES Error with Bower intstall
解决办法:sudo bower install --allow-root