SASS(吞咽)失败

SASS(吞咽)失败

gulp的失败了。这是一个干净的安装。以非超级用户身份安装并以非超级用户身份使用。
我在/X/跑步的时候gulp。它可以直接安装在其他机器上。我已经尝试ls -l $(du|grep 'node')|grep 'root'查找任何不正确的权限,但没有找到。

╰─ gulp
[00:20:14] Using gulpfile /X/gulpfile.js
[00:20:14] Starting 'cleanJs'...
[00:20:14] Starting 'cleanCss'...
[00:20:14] Starting 'cleanImg'...
[00:20:14] Finished 'cleanJs' after 31 ms
[00:20:14] Finished 'cleanCss' after 21 ms
[00:20:14] Finished 'cleanImg' after 19 ms
[00:20:14] Starting 'cleanAll'...
[00:20:14] Finished 'cleanAll' after 104 μs
[00:20:14] Starting 'buildFromScratch'...
[00:20:14] Starting 'styles'...
[00:20:15] 'styles' errored after 145 ms
[00:20:15] Error: /X/node_modules/node-sass/vendor/linux-x64-47/binding.node: failed to map segment from shared object: Operation not permitted
    at Error (native)
    at Object.Module._extensions..node (module.js:423:18)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/X/node_modules/node-sass/lib/index.js:16:15)
    at Module._compile (module.js:398:26)
    at Object.Module._extensions..js (module.js:405:10)
    at Module.load (module.js:344:32)
[00:20:15] Finished 'buildFromScratch' after 156 ms

答案1

我通过更改 /etc/fstab 的配置解决了我的问题。我在服务器上安装了一些分区。一个用于 /usr,另一个用于 /var/www,我在那里有我的网络项目。我必须给flash data=exec,然后重新启动系统,在项目目录中重新安装node_modules。

UUID="b0d7a164-2536-4c2a-98f7-cdc6c3107c45" /var/www ext4 rw,relatime,data=ordered,exec 0 2

相关内容