2
1
镜像自地址 https://github.com/therootcompany/serviceman.git 已同步 2025-05-09 07:26:32 +00:00

node/npm v12+ needs additional flags by default #3

开启中
coolaj862020-04-25 10:36:52 +00:00创建 · 0 评论
管理员

Now this needs to be added:

--scripts-prepend-node-path=true

as in

/home/aj/.local/opt/node-v12.16/bin/node /home/aj/.local/opt/node-v12.16/bin/npm --scripts-prepend-node-path=true start

Would prefer not to make a special case for node, but... whattado?

Also, npm can no longer run as root - so setcap and a fake user are needed.

Now this needs to be added: ``` --scripts-prepend-node-path=true ``` as in ``` /home/aj/.local/opt/node-v12.16/bin/node /home/aj/.local/opt/node-v12.16/bin/npm --scripts-prepend-node-path=true start ``` Would prefer not to make a special case for node, but... whattado? Also, npm can no longer run as root - so setcap and a fake user are needed.
登录 并参与到对话中。
未选择标签
1 名参与者
通知
到期时间
未设置到期时间。
依赖工单

没有设置依赖项。

参考:root/serviceman#3
没有提供说明。