Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
saivishalvangala opened this issue Apr 28, 2022 · 0 comments

Comments

@saivishalvangala
Copy link

saivishalvangala commented Apr 28, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant