我有一個本地節點模塊,我試圖在其他模塊中重用。
我使用 npm link 將模塊添加為其他模塊的依賴項。
一切正常,但是 IntelliJ 將其視為間接依賴,即使我將依賴添加到 pom。因此,依賴項的任何自動完成都不起作用。

POM1:
{
"name": "test-module",
"version": "1.0.0",
"description": "\"Module functionality testing project\"",
"main": "index.js",
"scripts": {
"test": "\"No Tests done\""
},
"author": "",
"license": "ISC"
}
pom2:
{
"name": "test-module-2",
"version": "1.0.0",
"description": "\"Module functionality testing project\"",
"main": "index.js",
"scripts": {
"dev": "node index.js",
"test": "\"No Tests done\""
},
"author": "",
"license": "ISC",
"dependencies": {
"test-module": "^1.0.0"
}
}
任何人都知道這是為什么以及如何解決它?
uj5u.com熱心網友回復:
該問題已在WEB-49242 上跟蹤,請關注它以獲取更新。作為一種解決方法,請嘗試node_modules\test-module通過從其右鍵單擊選單中選擇將目錄標記為/取消排除來將檔案夾包含在索引中
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/380773.html
標籤:节点.js 智能理念 节点模块 网络风暴 npm-link
