Npm 范围包与纱线的依赖关系
我已经用内容创建了作用域包Npm 范围包与纱线的依赖关系,npm,yarnpkg,npmjs,Npm,Yarnpkg,Npmjs,我已经用内容创建了作用域包@scope/eslint config { "name": "@scope/eslint-config", "version": "1.0.3", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { "type":
@scope/eslint config
{
"name": "@scope/eslint-config",
"version": "1.0.3",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git"
},
"author": "",
"license": "ISC",
"dependencies": {
"babel-eslint": "8.2.5",
"eslint": "5.1.0",
"eslint-config-airbnb": "17.0.0",
"eslint-config-prettier": "2.9.0",
"eslint-plugin-css-modules": "2.7.5",
"eslint-plugin-flowtype": "2.50.0",
"eslint-plugin-import": "2.13.0",
"eslint-plugin-jsx-a11y": "6.1.0",
"eslint-plugin-prettier": "2.6.2",
"eslint-plugin-react": "7.10.0",
"eslint-plugin-require-jsdoc-except": "1.1.0"
}
}
在我的项目中,它被添加为“@scoped/eslint config”:“1.0.2”,
但是,在运行warn install
之后,我只看到了没有任何依赖关系的包。但它与npm一起工作
我尝试了纱线
v1.8.0
,v1.7.0
和v1.6.0
你遇到麻烦了吗?任何解决方案?在npm中,由于扁平结构,它可以工作 对于纱线,您需要说
--flat
,但它会引起其他问题