【发布时间】:2019-01-29 00:23:39
【问题描述】:
我有很多关于 node-sass 的问题。我讨厌 node-sass,因为我无法安装所有东西。我无法安装 ionic4 或 nativescript。
我遇到了一些类似以下的错误:
configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/Users/torbengab/Desktop/Projects/HelloNativeScript/my-tab-ng/node_modules/node-sass/build'
gyp ERR! System Darwin 17.3.0
gyp ERR! command "/usr/local/bin/node" "/Users/...../node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/...../node_modules/node-sass
gyp ERR! node -v v10.8.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN extract-text-webpack-plugin@3.0.2 requires a peer of webpack@^3.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.9.3 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.9.3 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
我认为这是一个 root / sudo 问题。我试图卸载 node、npm、sass ......但我很愚蠢。没有什么对我有用。
我真的很希望有人可以帮助我。我对 sass 有这么多问题,真是令人难过和尴尬。
【问题讨论】:
标签: node.js sass node-modules sudo node-sass