PowerJob/PowerJob-Console

Not able to build & run console

Opened this issue · 3 comments

I tried step 3 in https://www.yuque.com/powerjob/en/sq8uml#tgMGS
When executing: "npm install" I am getting a bunch of deprecated warnings and errors.
e.g.
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibilitynpm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated

npm ERR! code 1
npm ERR! path C:\workspace\PowerJob-Console\node_modules\node-sass
npm ERR! command failed
npm ERR! command C:\windows\system32\cmd.exe /d /s /c node scripts/build.js
npm ERR! Building: C:\Program Files\nodejs\node.exe C:\workspace\PowerJob-Console\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=

npm ERR! gyp ERR! cwd C:\workspace\PowerJob-Console\node_modules\node-sass
npm ERR! gyp ERR! node -v v18.12.0
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed with error code: 1

Can you please advice further?

Thank you!

my node version: v14.20.0
have a try~

Delete package-lock.json file, and try again.

https://blog.51cto.com/knifeedge/5648025

把 node-sass 换成 dart-sass 就好了