VirtoCommerce/vc-platform

node-sass error when build vc-platform solution

six006 opened this issue · 2 comments

I download the latest version of vc platform version 3.204,when build it ,it return errors.

[4/4] Building fresh packages...
[-/3] ⠐ waiting...
[2/3] ⠈ node-sass
error E:\VirtoCommerce\5.Source\vc-platform-3.204.0\src\VirtoCommerce.Platform.Web\node_modules\node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: E:\VirtoCommerce\5.Source\vc-platform-3.204.0\src\VirtoCommerce.Platform.Web\node_modules\node-sass

my node version is v16.13.1
image

the npm package node-sass version is "^4.14.0",it can't run at the node version v16 ,
you can see the node version support policy
https://github.com/sass/node-sass#node-version-support-policy
image

so I suggest ,can you replace the package

"node-sass": "^4.14.0",

with


"sass": "^1.49.0",

I solved the problem. just use nvm .