我正在尝试使用我创建的 nodejs 包,有人可以指出我做错了什么。
这是包结构的样子:
node_modules
|__my_commons
| |__dist
| |__src
| | |__helpers.d.ts
| | |__helpers.js
| | |__index.d.ts
| | |__index.js
| |__node_modules <=This got recursively installed
| |__.npmignore
| |__package.json
src
|_app/app.component.ts <= Here I am using it
Run Code Online (Sandbox Code Playgroud)
my_commons/package.json
{
"_args": [
[
{
"raw": "my_commons@bitbucket:ishan_dutta/my_commons",
"scope": null,
"escapedName": "my_commons",
"name": "my_commons",
"rawSpec": "bitbucket:ishan_dutta/my_commons",
"spec": "bitbucket:ishan_dutta/my_commons",
"type": "hosted",
"hosted": {
"type": "bitbucket",
"ssh": "git@bitbucket.org:ishan_dutta/my_commons.git",
"sshUrl": "git+ssh://git@bitbucket.org/ishan_dutta/my_commons.git",
"httpsUrl": "git+https://bitbucket.org/ishan_dutta/my_commons.git",
"shortcut": "bitbucket:ishan_dutta/my_commons",
"directUrl": "https://bitbucket.org/ishan_dutta/my_commons/raw/master/package.json"
}
},
"/Users/ishandutta2007/Documents/Projects/my_proj"
]
],
"_from": …Run Code Online (Sandbox Code Playgroud)