raspberry PI 3问题上的Node.js安装
下面是在Raspberry上升级Node.js的简单步骤:raspberry PI 3问题上的Node.js安装,node.js,raspberry-pi,Node.js,Raspberry Pi,下面是在Raspberry上升级Node.js的简单步骤: curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash - sudo apt-get install -y nodejs 它产生的结果就像veerything是正确的: 然而,当我尝试启动 node -v 这是错误的 -bash: /usr/sbin/node: No such file or directory 而且/usr/sbin/中实际上没有节点目录! 发
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
sudo apt-get install -y nodejs
它产生的结果就像veerything是正确的:
然而,当我尝试启动
node -v
这是错误的
-bash: /usr/sbin/node: No such file or directory
而且/usr/sbin/中实际上没有节点目录!
发生了什么事
更新:
重新启动后,同一命令会出现另一个错误:
-bash: /usr/bin/node: cannot execute binary file: Exec format error
处理器是Arm7我也有类似的问题,但通过nvm安装解决了这个问题。我仍然不确定为什么会发生这种错误
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.10/install.sh | bash
nvm install node
node -v
我有类似的问题,但通过nvm安装解决了这个问题。我仍然不确定为什么会发生这种错误
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.10/install.sh | bash
nvm install node
node -v