每当我尝试进行npm安装时,我都会尝试构建Lindo dofus touch Lindo,这会给我一个错误。我尝试升级降级的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 ]
答案 0 :(得分:0)
您的依赖项链中的某项内容正在尝试安装Node-sass 4.9.3,Node 13不支持此功能。您需要找到该依赖项是什么,并查看是否存在使用node-sass的版本。如果要运行节点13,请使用sass 4.13.0。