/opt/node/bin/sqlpad -> /opt/node/lib/node_modules/sqlpad/server/server.js
> [email protected] install /opt/node/lib/node_modules/sqlpad/node_modules/odbc
> node-gyp configure build
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/10.13.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/opt/node/lib/node_modules/sqlpad/node_modules/odbc/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/opt/node/lib/node_modules/sqlpad/node_modules/odbc/.node-gyp'
gyp ERR! System Linux 3.10.0-327.22.2.el7.x86_64
gyp ERR! command "/opt/node/bin/node" "/opt/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /opt/node/lib/node_modules/sqlpad/node_modules/odbc
gyp ERR! node -v v10.13.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/sqlpad/node_modules/odbc):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp configure build`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
+ [email protected]
updated 1 package in 4.314s
root 用户没有权限访问 /root 目录。这是啥逻辑?
1
xpresslink 2018-11-24 13:18:09 +08:00
你看一下目录和文件的权限不得了
# chown -r root:root /root # chmod 600 -r /root |
2
sujin190 OP @xpresslink #1 root 目录肯定是 root 用户组的,而且肯定有写权限,手动命令行,其他程序都可以正常读写,完全没有问题
但是 npm 就是不行 |
3
nicevar 2018-11-24 14:06:30 +08:00
检查一下是不是 chattr 了
|
4
t123yh 2018-11-24 14:20:44 +08:00 via Android 2
--unsafe-perm
|