ERPNext.com Frappe Cloud Support Partners Foundation Frappe School

Build fails with Error: Cannot find module 'rollup'

yarn run v1.22.17
warning ../../package.json: No license field
$ FRAPPE_ENV=production node rollup/build.js --skip_frappe
internal/modules/cjs/loader.js:905
  throw err;
  ^

Error: Cannot find module 'rollup'
Require stack:
- /home/sooraj/frappe-bench/apps/frappe/rollup/build.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
    at Function.Module._load (internal/modules/cjs/loader.js:746:27)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:93:18)
    at Object.<anonymous> (/home/sooraj/frappe-bench/apps/frappe/rollup/build.js:4:16)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/home/sooraj/frappe-bench/apps/frappe/rollup/build.js' ]
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Tried Cannot find module 'rollup' but no success. Node version is 14 on root and current user. :confused:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.