Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
使用nodejs时怎么平衡administrator和 root的 权限
deepin Talks
933
views ·
1
replies ·
To
floor
Go
yelgogogo
deepin
2017-05-31 00:43
Author
如题,
在使用nodejs过程中,很多时候需要开root,否则会报权限不够,导致有些应用装到了administrator权限下,有些装到了root权限下。
在administrator下,由于一些应用是root创建的 ,经常会报出应用权限不足的错误。
又不能把所有的都一股脑装到root下,不知道大家是怎么做配置的
有大侠教教么
Reply
Like 0
Favorite
View the author
All Replies
snyh1010
deepin
2017-05-31 01:22
#1
1. 不要安装在global级别(除了极个别全局使用的命令行外)
2. 需要什么依赖就安装到具体的项目下.
3. 使用cnpm去替换npm.
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
Nuntia - Modern IMAP/SMTP mail client for Deepin (Beta tester wanted!)
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
Four agent skills for laptop power, sleep, and honest bug reports
Installing qemu-user breaks deepin
Adding a Dancing Spectrum Bar to the Deepin Taskbar | deepin-spectrum
Popular Events
More
在使用nodejs过程中,很多时候需要开root,否则会报权限不够,导致有些应用装到了administrator权限下,有些装到了root权限下。
在administrator下,由于一些应用是root创建的 ,经常会报出应用权限不足的错误。
又不能把所有的都一股脑装到root下,不知道大家是怎么做配置的
有大侠教教么