Closed wufeng87 closed 2 years ago
有人遇到过这个问题吗?谢谢
或者有没有一份packge-lock.json呢?我这边出这个错后,继续运行npm run setup会提示要安装一些依赖包。
yarn-error.log
Arguments:
/Users/hjm/.nvm/versions/node/v14.18.0/bin/node /Users/hjm/Documents/code/github/lowCode/lowcode-engine/node_modules/.bin/yarn install --mutex network:42424 --non-interactive --no-package-lock
PATH:
/Users/hjm/.nvm/versions/node/v14.18.0/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/hjm/Documents/code/github/lowCode/lowcode-engine/node_modules/.bin:/Users/hjm/.nvm/versions/node/v14.18.0/bin:/Users/hjm/.nvm/versions/node/v15.10.0/bin:/usr/local/mongodb4.2.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS:/Applications/Xamarin Workbooks.app/Contents/SharedSupport/path-bin:/Users/hjm/.nvm/versions/node/v15.10.0/bin:/usr/local/mongodb4.2.3/bin
Yarn version:
1.22.18
Node version:
14.18.0
Platform:
darwin x64
Trace:
Error: EINVAL: invalid argument, unlink '/Users/hjm/Documents/code/github/lowCode/lowcode-engine/node_modules/@stylelint/postcss-markdown/node_modules/remark'
npm manifest:
{
"private": true,
"workspaces": {
"packages": [
"packages/*"
],
"nohoist": [
"**/css-modules-typescript-loader",
"**/@alife/theme-lowcode-*"
]
},
"scripts": {
"build": "./scripts/build.sh",
"build:npm": "lerna run build --stream",
"build:umd": "lerna run build:umd --stream",
"clean": "rm -rf ./packages/*/lib ./packages/*/es ./packages/*/dist ./packages/*/build",
"lint": "f2elint scan -q -i ./packages/*/src",
"lint:fix": "f2elint fix -i ./packages/*/src",
"lint:modules": "f2elint scan -q -i ./modules/*/src",
"lint:modules:fix": "f2elint fix -i ./modules/*/src",
"pub": "npm run watchdog:build && lerna publish patch --force-publish --exact --no-changelog",
"pub:premajor": "npm run watchdog:build && lerna publish premajor --force-publish --exact --dist-tag beta --preid beta --no-changelog",
"pub:prepatch": "npm run watchdog:build && lerna publish prepatch --force-publish --exact --dist-tag beta --preid beta --no-changelog",
"pub:prerelease": "npm run watchdog:build && lerna publish prerelease --force-publish --exact --dist-tag beta --preid beta --no-changelog",
"setup": "./scripts/setup.sh",
"setup:test": "./scripts/setup-for-test.sh",
"setup:skip-build": "./scripts/setup-skip-build.sh",
"start": "./scripts/start.sh",
"test": "lerna run test --stream",
"test:snapshot": "lerna run test:snapshot",
"watchdog:build": "node ./scripts/watchdog.js"
},
"husky": {
"hooks": {
"pre-commit": "f2elint commit-file-scan",
"commit-msg": "f2elint commit-msg-scan"
}
},
"devDependencies": {
"f2elint": "^2.0.1",
"husky": "^7.0.4",
"lerna": "^4.0.0",
"typescript": "^4.5.5",
"yarn": "^1.22.17"
},
"engines": {
"node": ">=14.17.0 <16"
},
"tnpm": {
"mode": "yarn",
"lockfile": "enable"
},
"resolutions": {
"@builder/babel-preset-ice": "1.0.1"
}
}
yarn manifest:
No manifest
Lockfile:
No lockfile
整了个全新的仓库,npm i && npm run setup 无法复现~
你好 @wufeng87,由于缺乏必要的信息(如 bug 重现步骤、引擎版本信息 等),无法定位问题,请按照 issue bug 模板 补全信息。
@LeoYuan 谢谢你,我刚刚新clone了一份代码,换到你发的node版本,使用mac自带terminal窗口运行成功了。
Describe the bug (required) / 详细描述 bug(必填)
npm run setup
报错:To Reproduce (required) / 如何复现 bug?(必填,非常重要)
六天前的lowcode-engine源码(main分支),npm install 完了,执行npm run setup
node版本 v14.18.0