minifabric icon indicating copy to clipboard operation
minifabric copied to clipboard

Unable to add node dependencies on apps

Open alphacybercom opened this issue 3 years ago • 0 comments

I'm trying to add the express dependency on a custom app. By editing the app/node/package.json file, adding the following dependency:

"express": "^4.17.1"

I get the following error.

Error: Cannot find module 'express'
  Require stack:
  - /go/src/github.com/app/main.js
      at Function.Module._resolveFilename (internal/modules/cjs/loader.js:797:15)
      at Function.Module._load (internal/modules/cjs/loader.js:690:27)
      at Module.require (internal/modules/cjs/loader.js:852:19)
      at require (internal/modules/cjs/helpers.js:74:18)
      at Object.<anonymous> (/go/src/github.com/app/main.js:11:17)
      at Module._compile (internal/modules/cjs/loader.js:959:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
      at Module.load (internal/modules/cjs/loader.js:815:32)
      at Function.Module._load (internal/modules/cjs/loader.js:727:14)
      at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [ '/go/src/github.com/app/main.js' ]

How to solve it?

alphacybercom avatar Sep 10 '21 10:09 alphacybercom