Open robinhouston opened 4 years ago
This is the log:
untitled_flourish_template@1.0.0 build C:\Users\aziznitham[home
rollup -c
untitled_flourish_template@1.0.0 less C:\Users\aziznitham[home
lessc --plugin=less-plugin-clean-css --source-map less/style.less static/style.css
internal/modules/cjs/loader.js:796
throw err;
^
Error: Cannot find module 'tslib'
Require stack:
C:\Users\aziznitham[home\node_modules\less\bin\lessc
[90m at Function.Module._resolveFilename (internal/modules/cjs/loader.js:793:17)[39m
[90m at Function.Module._load (internal/modules/cjs/loader.js:686:27)[39m
[90m at Module.require (internal/modules/cjs/loader.js:848:19)[39m
[90m at require (internal/modules/cjs/helpers.js:74:18)[39m
at Object.<anonymous> (C:\Users\aziznitham[home\node_modules\[4mless[24m\bin\lessc:9:13)
[90m at Module._compile (internal/modules/cjs/loader.js:955:30)[39m
[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)[39m
[90m at Module.load (internal/modules/cjs/loader.js:811:32)[39m
[90m at Function.Module._load (internal/modules/cjs/loader.js:723:14)[39m
[90m at Function.Module.runMain (internal/modules/cjs/loader.js:1043:10)[39m {
code: [32m'MODULE_NOT_FOUND'[39m,
requireStack: [ [32m'C:\Users\aziznitham\[home\node_modules\less\bin\lessc'[39m ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! untitled_flourish_template@1.0.0 less: lessc --plugin=less-plugin-clean-css --source-map less/style.less static/style.css
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the untitled_flourish_template@1.0.0 less script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\aziznitham\AppData\Roaming\npm-cache_logs\2020-02-10T19_32_55_684Z-debug.log
� Failed to build template
� Failed to run build command ‘npm run less’
C:\Users\aziznitham>
src/index.js → template.js...
created template.js in 657ms
I have not been able to reproduce this on Windows 10 with NodeJS version 10.
I was also having an issue where running flourish run
would give me a build error. I was trying to run the command in a Google Drive folder. I switched to a local folder and it now works fine.
We’ve had a report from a Windows user that simply creating a new template with
flourish new
and then trying to run it usingflourish run
results in a build error at the stylesheet compilation stage.