Cannot build formeo
See original GitHub issueHi there,
I’ve been attempting to build Formeo on a Windows 10 machine using Command Prompt running under Administrator mode, but have been unable to up to this point.
The commands used so far are:
git clone https://github.com/Draggable/formeo.git cd formeo npm install && npm run dev
This process will run up until it hits the following errors:
npm WARN prepublish-on-install As of npm@5,
prepublish
scripts are deprecated. npm WARN prepublish-on-install Useprepare
for build steps andprepublishOnly
for upload-only. npm WARN prepublish-on-install See the deprecation note innpm help scripts
for more information.mini-css-extract-plugin@0.5.0 prepublish E:\Dev\Recognite\Dev\formeo\node_modules\mini-css-extract-plugin npm run build
mini-css-extract-plugin@0.5.0 prebuild E:\Dev\Recognite\Dev\formeo\node_modules\mini-css-extract-plugin npm run clean
mini-css-extract-plugin@0.5.0 clean E:\Dev\Recognite\Dev\formeo\node_modules\mini-css-extract-plugin del-cli dist
mini-css-extract-plugin@0.5.0 build E:\Dev\Recognite\Dev\formeo\node_modules\mini-css-extract-plugin cross-env NODE_ENV=production babel src -d dist --ignore ‘src/**/*.test.js’ --copy-files
src doesn’t exist npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! mini-css-extract-plugin@0.5.0 build:
cross-env NODE_ENV=production babel src -d dist --ignore 'src/**/*.test.js' --copy-files
npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the mini-css-extract-plugin@0.5.0 build 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\user\AppData\Roaming\npm-cache_logs\2019-02-18T00_44_54_997Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! mini-css-extract-plugin@0.5.0 prepublish:
npm run build
npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the mini-css-extract-plugin@0.5.0 prepublish 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\user\AppData\Roaming\npm-cache_logs\2019-02-18T00_44_55_043Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! formeo@1.0.0-beta.1 postinstall:
npm --prefix ./node_modules/mini-css-extract-plugin install ./node_modules/mini-css-extract-plugin && npm run --prefix ./node_modules/mini-css-extract-plugin build
npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the formeo@1.0.0-beta.1 postinstall 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\user\AppData\Roaming\npm-cache_logs\2019-02-18T00_44_55_146Z-debug.log
Any help here would be greatly appreciated. I have attempted to use webpack -v, but it instead goes through a process of installing webpack-cli and fails along the way, and subsequent attempts to reinstall still fail as mentioned previously.
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (2 by maintainers)
Top GitHub Comments
Make sure you have installed yarn. Please refer yarn install page
Execute the following commands one by one:
Once all the above commands are done, you would be able to see a folder
formeo\demo
which hasindex.html
and anassets
folder.Open the index.html in browser and you would be good to see the formeo designer screen.
@charmis absolutely. I took a look last night and the steps need to be updated as well as fixing install when using npm.