假设有一个名为
然后我运行
请问我在上述过程中犯了什么错误?谢谢!
abcd
的npm包。
通常在package.json
中,我们将其指定为依赖项:
"abcd": "^1.0.0",
但是这个abcd
并不按预期工作,所以我在https://github.com/mygithubid/abcd中forked(并修改)了它。然后我运行
npm install git+https://git@github.com/mygithubid/abcd.git
,在package.json
中,定义已更改为:
"abcd": "git+https://github.com/mygithubid/abcd.git",
重新启动使用此abcd
的项目后,现在它抛出错误:
未找到模块:无法解析'abcd'
即使我看到abcd
文件夹已添加到node_modules
中。请问我在上述过程中犯了什么错误?谢谢!
abcd
已经添加到node_modules
中,但应用程序仍在抱怨Module not found: Can't resolve 'abcd'
。 - iwan