Closed mrrossmullen closed 3 years ago
Removal of package-lock.json
file in the packages/callout folder overcomes the problem. Suspect package-lock.json
has the earlier version of the node-sass dependency, and this is rebuilt when npm i
is run causing the error.
No longer a problem. Whilst the error message is due to the node-sass
version , the issue ultimately occurred due to unfamiliarly with the build process. Design-system-components is a monorepo running npm i
within a packages directory will cause significant headaches.
Bug Report
What happened
Running
npm i
withinpackages/<any component>
on a Windows PC causes the build to fail at the node-sass dependency stage. The error log describes being unable to find Python which I suspect is installed on a Mac by default but not PC's.What I expected to happen
npm i
to complete successfully when run within apackages/<any component>
directory.Reproducing
@gov.au/callout
3.0.2
1.0.0
14.15.4
6.14.10
package.json
:Steps to reproduce:
npm i
npm run boostrap
cd packages/callout
npm i
Attachments