npm 错误!代码 E404 npm ERR! 404 未找到 - 获取 https://registry.npmjs.org/easier-discordjs - 未找到

问题描述

你好,我正在制作我的第一个 npm 包,名为更简单的-discordjs,但是当我在我的主模块文件夹和我的测试模块文件夹中执行 npm link 时,它给出了一个错误

npm link easier-discordjs
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/easier-discordjs - Not found
npm ERR! 404  'easier-discordjs@*' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball,folder,http url,or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\niels\AppData\Local\npm-cache\_logs\2021-06-22T15_59_17_982Z-debug.log

我的主模块的 index.js 是这样的:

module.exports = (name) => {
    return `Hello ${name}!`;
};

我的测试模块的 index.js 是这样的:

const greeter = require('easier-discordjs');

console.log(greeter('Niels'))

我不知道该怎么办。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)