umami-software / umami

Umami is a simple, fast, privacy-focused alternative to Google Analytics.
https://umami.is
MIT License
23.14k stars 4.3k forks source link

Can't update to 1.26.0 #973

Closed yovko closed 2 years ago

yovko commented 2 years ago

npm install is fine but...

$ npm run build

> umami@1.26.0 build
> npm-run-all build-tracker build-geo build-db build-app

> umami@1.26.0 build-tracker
> rollup -c rollup.tracker.config.js

[!] Error: Cannot find module 'acorn'
Require stack:
- /var/www/analytics/umami/node_modules/acorn-dynamic-import/lib/index.js
- /var/www/analytics/umami/node_modules/buble/dist/buble.cjs.js
- /var/www/analytics/umami/node_modules/@rollup/plugin-buble/dist/rollup-plugin-buble.cjs.js
- /var/www/analytics/umami/rollup.tracker.config.js
- /var/www/analytics/umami/node_modules/rollup/dist/shared/loadConfigFile.js
- /var/www/analytics/umami/node_modules/rollup/dist/bin/rollup

node v14.19.0 & npm 8.5.1

mikecao commented 2 years ago

Try removing your node_modules folder and installing from scratch. You can also try yarn instead of npm. I've always had better luck with Yarn.

yovko commented 2 years ago

Removing node_modules and installing from scratch didn't help. Same error. But using yarn instead of npm was the useful solution. Thanks!