node-sass error when build vc-platform solution
six006 opened this issue · 2 comments
six006 commented
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
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
so I suggest ,can you replace the package
"node-sass": "^4.14.0",
with
"sass": "^1.49.0",
mvktsk commented
Task https://virtocommerce.atlassian.net/browse/VP-7946 has been created
six006 commented
I solved the problem. just use nvm .