【问题标题】:Linux unity editor : unity-editor depends on npm; however: Package npm is not installedLinux unity editor : unity-editor 依赖 npm;但是:未安装软件包 npm
【发布时间】:2017-11-17 14:24:35
【问题描述】:

我正在尝试安装此处发布的 linux unity 编辑器https://forum.unity.com/threads/unity-on-linux-release-notes-and-known-issues.350256/page-2 我得到了最新的 nodejs 包版本 v9.2.0 我可以从控制台以 root 身份运行 node 、 npm 。我将节点包的路径添加到 .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# 

【问题讨论】:

    标签: node.js linux unity3d npm


    【解决方案1】:

    您可以从发行版的存储库中安装 NodeJS:

    sudo apt-get install nodejs
    sudo apt-get install npm
    

    【讨论】:

    • root@VirtualMazeLinux:/home/mkandula# node -v v9.2.0 root@VirtualMazeLinux:/home/mkandula# npm -v 5.5.1
    • 好的,安装又掉了吗?
    猜你喜欢
    • 2017-09-30
    • 1970-01-01
    • 2016-03-14
    • 1970-01-01
    • 2017-04-08
    • 2015-04-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多