我正在尝试安装这里发布的linux统一编辑器https://forum.unity.com/threads/unity-on-linux-release-notes-and-known-issues.350256/page-2 我得到了最新的nodejs软件包版本v9.2.0我可以从控制台运行节点,npm作为root。我将节点包的路径添加到.bashrc文件中 但是在.deb安装期间,它无法检测到npm。请参阅下面的日志。请求有关此问题的帮助。
root@VirtualMazeLinux:/home/mkandula# dpkg -i ./Downloads/unity-editor_amd64-2017.2.0f3.deb
Selecting previously unselected package unity-editor.
(Reading database ... 189549 files and directories currently installed.)
Preparing to unpack .../unity-editor_amd64-2017.2.0f3.deb ...
Unpacking unity-editor (2017.2.0f3) ...
dpkg: dependency problems prevent configuration of unity-editor:
unity-editor depends on npm; however:
Package npm is not installed.
dpkg: error processing package unity-editor (--install):
dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.13.3-9) ...
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...
Errors were encountered while processing:
unity-editor
root@VirtualMazeLinux:/home/mkandula# node -v
v9.2.0
root@VirtualMazeLinux:/home/mkandula# npm -v
5.5.1
root@VirtualMazeLinux:/home/mkandula#
答案 0 :(得分:0)
您可以从发行版的存储库安装NodeJS:
sudo apt-get install nodejs
sudo apt-get install npm