【问题标题】:Lindo(Dofus-touch emulator) "npm-install error" node-sass@4.9.3 postinstall: `node scripts/build.js`Lindo(Dofus-touch emulator) "npm-install error" node-sass@4.9.3 postinstall: `node scripts/build.js`
【发布时间】:2020-03-01 23:56:41
【问题描述】:

我正在尝试构建 Lindo dofus touch Lindo,每当我尝试执行 npm install 时,它都会给我一个错误。我尝试升级降级我的 node-sass -v,并尝试安装 node js 12x。节点没有工作。任何人都可以尝试

$ git clone https://github.com/prixe/lindo.git
$ cd lindo
$ npm install

我也尝试在没有“package-lock.json”的情况下删除和安装

My versions:
Node v13.0.1
Npm v6.12.1
node-sass       4.13.0  (Wrapper)       [JavaScript]
libsass         3.5.4   (Sass Compiler) [C/C++]

这是我的错误日志:

50999 verbose stack Error: node-sass@4.9.3 postinstall: `node scripts/build.js`
50999 verbose stack Exit status 1
50999 verbose stack     at EventEmitter.<anonymous> (C:\Users\barisgun\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
50999 verbose stack     at EventEmitter.emit (events.js:210:5)
50999 verbose stack     at ChildProcess.<anonymous> (C:\Users\barisgun\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
50999 verbose stack     at ChildProcess.emit (events.js:210:5)
50999 verbose stack     at maybeClose (internal/child_process.js:1028:16)
50999 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
51000 verbose pkgid node-sass@4.9.3
51001 verbose cwd C:\Users\barisgun\lindo
51002 verbose Windows_NT 10.0.18362
51003 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\barisgun\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
51004 verbose node v13.0.1
51005 verbose npm  v6.12.1
51006 error code ELIFECYCLE
51007 error errno 1
51008 error node-sass@4.9.3 postinstall: `node scripts/build.js`
51008 error Exit status 1
51009 error Failed at the node-sass@4.9.3 postinstall script.
51009 error This is probably not a problem with npm. There is likely additional logging output above.
51010 verbose exit [ 1, true ]

【问题讨论】:

  • 你能解决这个问题吗?

标签: node.js npm sass npm-install node-sass


【解决方案1】:

您的依赖链中的某些内容正在尝试安装 node-sass 4.9.3,而 Node 13 不支持该版本。您需要找到该依赖项是什么,并查看是否有使用节点的版本-如果要运行 Node 13,请使用 sass 4.13.0。

【讨论】:

  • 先生,在 package.json 我有这一行“node-sass”:“4.9.3”,当我尝试将其设置为 4.13.0 时,我有这一行它不起作用,它说这个不支持 node-sass。我怎样才能改变它?还有其他方法吗?
猜你喜欢
  • 2021-02-18
  • 1970-01-01
  • 1970-01-01
  • 2020-10-22
  • 2021-05-02
  • 2020-09-11
  • 1970-01-01
  • 2019-06-20
  • 1970-01-01
相关资源
最近更新 更多