Node-slack-sdk: module.exports.repository.replace is not a function

Created on 21 Dec 2016  路  4Comments  路  Source: slackapi/node-slack-sdk

  • [X] I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • [X] I've read and agree to the Code of Conduct.
  • [X] I've searched for any related issues and avoided creating a duplicate issue.

When I do:

npm install @slack/client
node -e 'require("@slack/client")'

The output I get is this:

TypeError: module.exports.repository.replace is not a function

It's because on the installed version the value of repository property in package.json is:

{ type: 'git',
  url: 'git+https://github.com/slackapi/node-slack-sdk.git' }

Which, I guess, is not expected.

On linux. Latest version.

bug

All 4 comments

Same here. The module is broken now.

Right. I did not expect that NPM would actually alter the package.json file. TIL. Getting a fix out now.

@Rauno56 @palmerabollo Can you confirm the issue is resolved?

It works now. Thank you @DEGoodmanWilson.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CoreyCole picture CoreyCole  路  12Comments

freder picture freder  路  12Comments

jayjanssen picture jayjanssen  路  13Comments

aoberoi picture aoberoi  路  12Comments

aoberoi picture aoberoi  路  11Comments