Skip to content

check-version error #20

@OberstVonGatow

Description

@OberstVonGatow

Hi, maybe I'm doing something wrong because I'm pretty new to nodejs.
I tried using the collmex-client with import instead of required:

import Collmex from 'collmex-client';

const collmex = Collmex({
    User: 'XXX',
    Password: 'XXXX',
    CMXKundennummer: XXXXX,
    Firma_Nr: 1,
    Systemname: 'collmex-test'
});

I get an error

Uncaught TypeError: Cannot read properties of null (reading 'toString')

in check-version.js line 9:
const npmData = JSON.parse(spawnSync('npm', ['view', pkgName, '--json']).stdout.toString())

If i remove the checkVersion() call everything works for me

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