视觉代码和nodejs,未安装的软件包名称空间的推断
我有一个烦人的问题。如果
- 我开始一个空白节点项目
- 其中没有安装的模块
- 我做
import''
,在括号之间,我按ctrl+space
,我得到了一些实际上不应该存在的名称空间。<<<<<<<<<<<<<<< /li>
- 我做
我承认我在学习如何编码时可能做了一些错误的操作,但是我尝试解决了许多事情:
- 我删除了我删除的不必要的全球安装软件包,
- 我删除了node_modules文件夹,我在
>/code>中意外安装了这些文件夹。文件夹。 但是我仍然得到其中一些由VC推理引用的:
您可以在图像中看到的,我得到了一些随机的推断名称空间。当尝试通过在Mac上按cmd
来到达原始文件夹时,VC不会突出显示并创建通常的超链接(当该软件包实际上在那里时,VC会创建一个链接以导航到引用文件)。
我怎么能摆脱那些假名的空间?希望你能帮我!
I am having an annoying issue. If
- I start a blank Node project
- no modules installed in it
- I do a
import ''
, and, in between the brackets, I pressctrl+space
, I get inferred some namespaces which should not actually be there.
- I do a
I admit I probably did some wrong manipulation when learning how to code, but I tried to solve many of those things:
- I deleted the unnecessary globally installed packages
- I removed node_modules folders that I accidentally installed in my
/Users
folder.
But I still get some of them referenced by VC inference:
As you can see in the image I get some random inferred namespace. When trying to reach the originating folder by pressing cmd
on Mac, VC doesn't highlight and create the usual hyperlink (when the package is actually there, VC creates a link to navigate to the references file).
How can I get rid of those fake namespaces?? hope you can help me out!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,这是超级快捷的,实际上在我的
/users
文件夹中,我忘了删除package.json
文件,该文件告诉VC,这已安装了某些内容... 。很有趣!
Ok this one was super quick and simple, in fact in my
/Users
folder I forgot to delete apackage.json
file which was telling VC thats something was installed ....Interesting to know!