首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Linux unity editor : unity-editor依赖于npm;但是:未安装npm包

Linux unity editor : unity-editor依赖于npm;但是:未安装npm包
EN

Stack Overflow用户
提问于 2017-11-17 14:20:10
回答 1查看 250关注 0票数 0

我正在尝试安装linux unity编辑器,就像这里发布的那样,https://forum.unity.com/threads/unity-on-linux-release-notes-and-known-issues.350256/page-2我得到了最新的nodejs包版本v9.2.0,我可以从控制台以根用户身份运行节点npm。我将节点包的路径添加到.bashrc文件中,但是在.deb安装过程中,它无法检测到npm。请参阅下面的日志。请求有关此问题的帮助。

代码语言:javascript
复制
 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# 
EN

回答 1

Stack Overflow用户

发布于 2017-11-17 14:24:36

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

代码语言:javascript
复制
sudo apt-get install nodejs
sudo apt-get install npm
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47344445

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档