When I tried make yarn install I got error. The problem related with workspaces how I understand now. Before that everything was ok.
Command
yarn install
What is the current behavior?
error An unexpected error occurred: "EEXIST: file already exists, mkdir '/home/admin/web/domain.com/node_modules/nextjs'".
What is the expected behavior?
All packages have to be installed
Steps to Reproduce
Yarn version:
1.17.3
Node version:
10.15.3
Platform:
linux x64
Trace:
Error: EEXIST: file already exists, mkdir '/home/admin/web/domain.com/node_modules/nextjs'
npm manifest:
{
"name": "nextjs",
"version": "4.0.0",
"private": true,
"scripts": {
"dev": "node server/index.js",
"build": "rm -rf .next* && next build && zip -r .next.zip .next",
"export": "next build && next export",
"start": "NODE_ENV=production node server/index.js",
"startDev": "next build && cross-env NODE_ENV=development node server/index.js",
"startProd": "next build && cross-env NODE_ENV=production node server/index.js",
"lint": "standard --fix",
"storybook": "start-storybook -s ./public -p 6006",
"build-storybook": "build-storybook",
"analyze": "BUNDLE_ANALYZE=both next build",
"analyze:server": "BUNDLE_ANALYZE=server next build",
"analyze:browser": "BUNDLE_ANALYZE=browser next build"
},
"engines": {
"npm": ">=6.1.0",
"node": ">=10.15.3"
},
"workspaces": {
"packages": [
".storybook/**/**",
"components/**/**",
"api/**/**",
"pages/**/**"
],
"nohoist": []
},
"browserslist": [
"> 1%",
"ie >= 8",
"edge >= 15",
"ie_mob >= 10",
"ff >= 45",
"chrome >= 45",
"safari >= 7",
"opera >= 23",
"ios >= 7",
"android >= 4",
"bb >= 10"
],
"dependencies": {
"@material-ui/core": "^4.9.1",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "^4.0.0-alpha.45",
"@zeit/next-css": "1.0.1",
"classnames": "^2.2.6",
"clsx": "latest",
"color": "^3.1.2",
"express": "^4.16.4",
"mobx": "^5.15.4",
"mobx-react": "^6.1.7",
"mobx-sync": "^2.1.2",
"moment": "^2.24.0",
"next": "9.2.2-canary.21",
"next-i18next": "^4.2.0",
"next-routes": "^1.4.2",
"nprogress": "^0.2.0",
"prop-types": "latest",
"react": "latest",
"react-device-detect": "^1.11.14",
"react-dom": "latest",
"react-ga": "^2.7.0",
"react-helmet": "^5.2.1"
},
"resolutions": {},
"devDependencies": {
"@babel/core": "^7.8.4",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-proposal-decorators": "^7.1.0",
"@zeit/next-bundle-analyzer": "^0.1.2",
"babel-eslint": "11.0.0-beta.2",
"babel-loader": "^8.0.6",
"babel-plugin-inline-react-svg": "^1.1.1",
"babel-plugin-root-import": "^6.4.1",
"babel-plugin-styled-components": "^1.10.7",
"core-js": "2.6.5",
"cross-env": "5.2.0",
"eslint": "5.16.0",
"eslint-config-standard": "12.0.0",
"eslint-config-standard-jsx": "6.0.2",
"eslint-plugin-import": "2.17.3",
"eslint-plugin-node": "9.1.0",
"eslint-plugin-promise": "4.1.1",
"eslint-plugin-react": "7.13.0",
"eslint-plugin-standard": "4.0.0",
"openurl": "^1.1.1"
}
}
any news?
Yes, don't make symlink to the .node_modules, it should be directory only.
Most helpful comment
Yes, don't make symlink to the
.node_modules, it should be directory only.