Skip to content

Error: /Users/saivishalvangala/Documents/EM/git-repos/emdashboard/uiShellFramework/node_modules/@oracle/oraclejet/package.json: ENOENT: no such file or directory, open '/Users/saivishalvangala/Documents/EM/git-repos/emdashboard/uiShellFramework/node_modules/@oracle/oraclejet/package.json' #83

@saivishalvangala

Description

@saivishalvangala

Following is my node and npm and JET version

$ node -v
v16.15.0

$ npm --version
8.5.5

$ ojet -v
Oracle JET Command Line Interface, version: 12.1.0

I am trying to run the application by "ojet serve"
$ ojet serve
It is failing with the below error:

Warning: Command is missing platform. Default to web.
Error: /Users/saivishalvangala/Documents/EM/git-repos/emdashboard/uiShellFramework/node_modules/@oracle/oraclejet/package.json: ENOENT: no such file or directory, open '/Users/saivishalvangala/Documents/EM/git-repos/emdashboard/uiShellFramework/node_modules/@oracle/oraclejet/package.json'
    at Object.openSync (node:fs:585:3)
    at Object.readFileSync (node:fs:453:35)
    at Object.readFileSync (/usr/local/lib/node_modules/@oracle/ojet-cli/node_modules/jsonfile/index.js:61:22)
    at Object.util.getJETVersion (/usr/local/lib/node_modules/@oracle/ojet-cli/node_modules/@oracle/oraclejet-tooling/lib/util.js:706:20)
    at Object.versionNumber (/usr/local/lib/node_modules/@oracle/ojet-cli/node_modules/@oracle/oraclejet-tooling/lib/validations.js:276:21)
    at _getValidThemeObject (/usr/local/lib/node_modules/@oracle/ojet-cli/node_modules/@oracle/oraclejet-tooling/lib/validations.js:173:33)
    at _setValidThemeOption (/usr/local/lib/node_modules/@oracle/ojet-cli/node_modules/@oracle/oraclejet-tooling/lib/validations.js:183:19)
    at Object._validateTheme [as theme] (/usr/local/lib/node_modules/@oracle/ojet-cli/node_modules/@oracle/oraclejet-tooling/lib/validations.js:21:12)
    at _validateOptions (/usr/local/lib/node_modules/@oracle/ojet-cli/node_modules/@oracle/oraclejet-tooling/lib/serve.js:149:24)
    at /usr/local/lib/node_modules/@oracle/ojet-cli/node_modules/@oracle/oraclejet-tooling/lib/serve.js:82:26 {
saivishalvangala@saivishalvangala-mac uiShellFramework % ojet serve
Warning: Command is missing platform. Default to web.
Error: /Users/saivishalvangala/Documents/EM/git-repos/emdashboard/uiShellFramework/node_modules/@oracle/oraclejet/package.json: ENOENT: no such file or directory, open '/Users/saivishalvangala/Documents/EM/git-repos/emdashboard/uiShellFramework/node_modules/@oracle/oraclejet/package.json'
    at Object.openSync (node:fs:585:3)
    at Object.readFileSync (node:fs:453:35)
    at Object.readFileSync (/usr/local/lib/node_modules/@oracle/ojet-cli/node_modules/jsonfile/index.js:61:22)
    at Object.util.getJETVersion (/usr/local/lib/node_modules/@oracle/ojet-cli/node_modules/@oracle/oraclejet-tooling/lib/util.js:706:20)
    at Object.versionNumber (/usr/local/lib/node_modules/@oracle/ojet-cli/node_modules/@oracle/oraclejet-tooling/lib/validations.js:276:21)
    at _getValidThemeObject (/usr/local/lib/node_modules/@oracle/ojet-cli/node_modules/@oracle/oraclejet-tooling/lib/validations.js:173:33)
    at _setValidThemeOption (/usr/local/lib/node_modules/@oracle/ojet-cli/node_modules/@oracle/oraclejet-tooling/lib/validations.js:183:19)
    at Object._validateTheme [as theme] (/usr/local/lib/node_modules/@oracle/ojet-cli/node_modules/@oracle/oraclejet-tooling/lib/validations.js:21:12)
    at _validateOptions (/usr/local/lib/node_modules/@oracle/ojet-cli/node_modules/@oracle/oraclejet-tooling/lib/serve.js:149:24)
    at /usr/local/lib/node_modules/@oracle/ojet-cli/node_modules/@oracle/oraclejet-tooling/lib/serve.js:82:26 {
saivishalvangala@saivishalvangala-mac uiShellFramework % ojet build
Warning: Command is missing platform. Default to web.
/usr/local/lib/node_modules/@oracle/ojet-cli/node_modules/jsonfile/index.js:67
      throw err
      ^

Error: /Users/saivishalvangala/Documents/EM/git-repos/emdashboard/uiShellFramework/node_modules/@oracle/oraclejet/package.json: ENOENT: no such file or directory, open '/Users/saivishalvangala/Documents/EM/git-repos/emdashboard/uiShellFramework/node_modules/@oracle/oraclejet/package.json'
    at Object.openSync (node:fs:585:3)
    at Object.readFileSync (node:fs:453:35)
    at Object.readFileSync (/usr/local/lib/node_modules/@oracle/ojet-cli/node_modules/jsonfile/index.js:61:22)
    at Object.util.getJETVersion (/usr/local/lib/node_modules/@oracle/ojet-cli/node_modules/@oracle/oraclejet-tooling/lib/util.js:706:20)
    at pcss (/usr/local/lib/node_modules/@oracle/ojet-cli/node_modules/@oracle/oraclejet-tooling/lib/defaultconfig.js:252:64)
    at /usr/local/lib/node_modules/@oracle/ojet-cli/node_modules/@oracle/oraclejet-tooling/lib/validations.js:107:21
    at Array.forEach (<anonymous>)
saivishalvangala@saivishalvangala-mac uiShellFramework % npm install
saivishalvangala@saivishalvangala-mac uiShellFramework % ojet serve 
/usr/local/lib/node_modules/@oracle/ojet-cli/lib/util/utils.js:655
    if (!utils.loadToolingUtil().buildWithWebpack()) {
saivishalvangala@saivishalvangala-mac uiShellFramework % ojet serve
/usr/local/lib/node_modules/@oracle/ojet-cli/lib/util/utils.js:655
    if (!utils.loadToolingUtil().buildWithWebpack()) {
                                 ^

TypeError: utils.loadToolingUtil(...).buildWithWebpack is not a function
    at Object.utils.validatePlatform (/usr/local/lib/node_modules/@oracle/ojet-cli/lib/util/utils.js:655:34)
saivishalvangala@saivishalvangala-mac uiShellFramework % ojet serve
/usr/local/lib/node_modules/@oracle/ojet-cli/lib/util/utils.js:655
    if (!utils.loadToolingUtil().buildWithWebpack()) {
                                 ^

TypeError: utils.loadToolingUtil(...).buildWithWebpack is not a function
    at Object.utils.validatePlatform (/usr/local/lib/node_modules/@oracle/ojet-cli/lib/util/utils.js:655:34)
    at module.exports (/usr/local/lib/node_modules/@oracle/ojet-cli/lib/tooling/serve.js:27:33)
    at module.exports (/usr/local/lib/node_modules/@oracle/ojet-cli/lib/tooling/index.js:22:12)
    at Object.app.runTooling (/usr/local/lib/node_modules/@oracle/ojet-cli/lib/scopes/app.js:327:12)
    at module.exports (/usr/local/lib/node_modules/@oracle/ojet-cli/lib/tasks/build.serve.js:41:18)
    at module.exports (/usr/local/lib/node_modules/@oracle/ojet-cli/lib/tasks/index.js:69:14)
    at Object.<anonymous> (/usr/local/lib/node_modules/@oracle/ojet-cli/bin/ojet:15:1)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
saivishalvangala@saivishalvangala-mac uiShellFramework % npm install

up to date in 3m

43 packages are looking for funding
  run `npm fund` for details 
  

Appreciate the help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions