Skip to content
This repository was archived by the owner on Dec 15, 2025. It is now read-only.
This repository was archived by the owner on Dec 15, 2025. It is now read-only.

Upgrade ce-dev node stack #116

Open
Open

Description

@gregharvey

This is getting pretty out of date, while there are no serious vulnerabilities it needs modernising. To update package.json you need to do this from the ce-dev root on a machine with yarn installed:

  • rm -Rf node_modules/*
  • rm yarn.lock
  • edit package.json and set all package versions to *
  • npm update --save (not on a VPN)
  • yarn
  • yarn oclif-dev pack

Pick through the errors!

Activity

  1. gregharvey commented on May 18, 2023

    @gregharvey
    MemberAuthor
    $ yarn oclif-dev pack
    yarn run v1.22.19
    $ /home/greg/workspace/ce-ops/ce-dev/node_modules/.bin/oclif-dev pack
    (node:256787) [ERR_REQUIRE_ESM] Error Plugin: ce-dev [ERR_REQUIRE_ESM]: require() of ES Module /home/greg/workspace/ce-ops/ce-dev/node_modules/globby/index.js from /home/greg/workspace/ce-ops/ce-dev/node_modules/@oclif/dev-cli/node_modules/@oclif/config/lib/plugin.js not supported.
    Instead change the require of index.js in /home/greg/workspace/ce-ops/ce-dev/node_modules/@oclif/dev-cli/node_modules/@oclif/config/lib/plugin.js to a dynamic import() which is available in all CommonJS modules.
    module: @oclif/config@1.18.2
    task: not loading commands, globby not found
    plugin: ce-dev
    root: /home/greg/workspace/ce-ops/ce-dev
    See more details with DEBUG=*
    (Use `node-18 --trace-warnings ...` to show where the warning was created)
    oclif-dev: gathering workspace for ce-dev to /home/greg/workspace/ce-ops/ce-dev/tmp/ce-dev
    npm ERR! code 1
    npm ERR! path /home/greg/workspace/ce-ops/ce-dev
    npm ERR! command failed
    npm ERR! command sh -c rm -rf lib && tsc -b && oclif-dev manifest
    npm ERR! node_modules/@oclif/parser/lib/index.d.ts(16,35): error TS2344: Type 'TFlags' does not satisfy the constraint 'Output'.
    npm ERR! node_modules/@oclif/parser/lib/index.d.ts(16,52): error TS2344: Type 'TFlags' does not satisfy the constraint 'OutputFlags<any>'.
    npm ERR! src/yaml-parser.ts(28,23): error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'string | undefined'.
    npm ERR! src/yaml-parser.ts(54,23): error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'string | undefined'.
    npm ERR! src/controller-manager.ts(132,17): error TS2722: Cannot invoke an object which is possibly 'undefined'.
    npm ERR! src/controller-manager.ts(132,17): error TS18048: 'process.getuid' is possibly 'undefined'.
    npm ERR! src/controller-manager.ts(134,9): error TS2722: Cannot invoke an object which is possibly 'undefined'.
    npm ERR! src/controller-manager.ts(135,13): error TS2722: Cannot invoke an object which is possibly 'undefined'.
    npm ERR! node_modules/@oclif/command/lib/command.d.ts(70,31): error TS2344: Type 'F' does not satisfy the constraint 'Output'.
    npm ERR! node_modules/@oclif/command/lib/command.d.ts(70,67): error TS2344: Type 'F' does not satisfy the constraint 'OutputFlags<any>'.
    npm ERR! src/commands/clean.ts(27,57): error TS2339: Property 'prompt' does not exist on type 'typeof import("/home/greg/workspace/ce-ops/ce-dev/node_modules/@types/inquirer/index")'.
    npm ERR! src/commands/config.ts(5,10): error TS2339: Property 'registerPrompt' does not exist on type 'typeof import("/home/greg/workspace/ce-ops/ce-dev/node_modules/@types/inquirer/index")'.
    npm ERR! src/commands/config.ts(15,55): error TS2339: Property 'prompt' does not exist on type 'typeof import("/home/greg/workspace/ce-ops/ce-dev/node_modules/@types/inquirer/index")'.
    npm ERR! src/commands/create.ts(65,44): error TS2339: Property 'prompt' does not exist on type 'typeof import("/home/greg/workspace/ce-ops/ce-dev/node_modules/@types/inquirer/index")'.
    npm ERR! src/commands/create.ts(76,44): error TS2339: Property 'prompt' does not exist on type 'typeof import("/home/greg/workspace/ce-ops/ce-dev/node_modules/@types/inquirer/index")'.
    npm ERR! src/commands/create.ts(92,44): error TS2339: Property 'prompt' does not exist on type 'typeof import("/home/greg/workspace/ce-ops/ce-dev/node_modules/@types/inquirer/index")'.
    npm ERR! src/commands/init.ts(12,10): error TS2339: Property 'registerPrompt' does not exist on type 'typeof import("/home/greg/workspace/ce-ops/ce-dev/node_modules/@types/inquirer/index")'.
    npm ERR! src/commands/init.ts(240,14): error TS2339: Property 'prompt' does not exist on type 'typeof import("/home/greg/workspace/ce-ops/ce-dev/node_modules/@types/inquirer/index")'.
    npm ERR! src/commands/init.ts(241,7): error TS7006: Parameter 'response' implicitly has an 'any' type.
    npm ERR! src/commands/init.ts(255,7): error TS7006: Parameter 'error' implicitly has an 'any' type.
    npm ERR! src/commands/init.ts(409,12): error TS2790: The operand of a 'delete' operator must be optional.
    npm ERR! src/commands/shell.ts(40,46): error TS2339: Property 'prompt' does not exist on type 'typeof import("/home/greg/workspace/ce-ops/ce-dev/node_modules/@types/inquirer/index")'.
    npm ERR! src/commands/start.ts(106,17): error TS2722: Cannot invoke an object which is possibly 'undefined'.
    npm ERR! src/commands/start.ts(106,17): error TS18048: 'process.getuid' is possibly 'undefined'.
    npm ERR! src/commands/start.ts(108,9): error TS2722: Cannot invoke an object which is possibly 'undefined'.
    npm ERR! src/commands/start.ts(109,13): error TS2722: Cannot invoke an object which is possibly 'undefined'.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /home/greg/.npm/_logs/2023-05-18T16_03_01_775Z-debug-0.log
        Error: Command failed: npm pack --unsafe-perm
        null
    
        Code: 1
    error Command failed with exit code 1.
    info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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