Skip to content

Instantly share code, notes, and snippets.

@ChadRehmKineticData
Last active June 6, 2019 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChadRehmKineticData/e1016f655e276e27b3d830d817eed4d1 to your computer and use it in GitHub Desktop.
Save ChadRehmKineticData/e1016f655e276e27b3d830d817eed4d1 to your computer and use it in GitHub Desktop.
Yarn build error
C:\Users\chad.rehm\Desktop\Kinetic React Bundles\react-kinetic-lib>yarn build
yarn run v1.5.1
(node:13220) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
$ yarn dir && yarn lint && yarn assets && yarn js
(node:1680) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
$ (rimraf lib || true) && (mkdir -p lib || true) && mkdir -p lib/assets
A subdirectory or file -p already exists.
Error occurred while processing: -p.
'true' is not recognized as an internal or external command,
operable program or batch file.
error An unexpected error occurred: "Command failed.
Exit code: 1
Command: C:\\WINDOWS\\system32\\cmd.exe
Arguments: /d /s /c (rimraf lib || true) && (mkdir -p lib || true) && mkdir -p lib/assets
Directory: C:\\Users\\chad.rehm\\Desktop\\Kinetic React Bundles\\react-kinetic-lib
Output:
".
info If you think this is a bug, please open a bug report with the information provided in "C:\\Users\\chad.rehm\\Desktop\\Kinetic React Bundles\\react-kinetic-lib\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error An unexpected error occurred: "Command failed.
Exit code: 1
Command: C:\\WINDOWS\\system32\\cmd.exe
Arguments: /d /s /c yarn dir && yarn lint && yarn assets && yarn js
Directory: C:\\Users\\chad.rehm\\Desktop\\Kinetic React Bundles\\react-kinetic-lib
Output:
".
info If you think this is a bug, please open a bug report with the information provided in "C:\\Users\\chad.rehm\\Desktop\\Kinetic React Bundles\\react-kinetic-lib\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
C:\Users\chad.rehm\Desktop\Kinetic React Bundles\react-kinetic-lib>yarn build
yarn run v1.5.1
(node:19908) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
$ yarn dir && yarn lint && yarn assets && yarn js
(node:30376) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
$ rimraf lib && mkdir -p lib && mkdir -p lib/assets
The syntax of the command is incorrect.
error An unexpected error occurred: "Command failed.
Exit code: 1
Command: C:\\WINDOWS\\system32\\cmd.exe
Arguments: /d /s /c rimraf lib && mkdir -p lib && mkdir -p lib/assets
Directory: C:\\Users\\chad.rehm\\Desktop\\Kinetic React Bundles\\react-kinetic-lib
Output:
".
info If you think this is a bug, please open a bug report with the information provided in "C:\\Users\\chad.rehm\\Desktop\\Kinetic React Bundles\\react-kinetic-lib\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error An unexpected error occurred: "Command failed.
Exit code: 1
Command: C:\\WINDOWS\\system32\\cmd.exe
Arguments: /d /s /c yarn dir && yarn lint && yarn assets && yarn js
Directory: C:\\Users\\chad.rehm\\Desktop\\Kinetic React Bundles\\react-kinetic-lib
Output:
".
info If you think this is a bug, please open a bug report with the information provided in "C:\\Users\\chad.rehm\\Deskto[##############################################################################################-------------] 1606/1830
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
"scripts": {
"build": "yarn dir && yarn lint && yarn assets && yarn js",
"build:watch": "yarn dir && yarn lint && yarn assets && concurrently \"yarn lint:watch\" \"yarn assets:watch\" \"yarn js:watch\"",
"dir": "if exist rd /s /q lib && mkdir lib/assets",
"js": "cross-env NODE_ENV=production babel src --out-dir lib --ignore \"**/*.test.js\"",
"js:watch": "cross-env NODE_ENV=production babel src --watch --out-dir lib --ignore \"**/*.test.js\"",
"assets": "cpx \"src/assets/**/*\" \"lib/assets\"",
"assets:watch": "cpx \"src/assets/**/*\" \"lib/assets\" -w",
"lint": "eslint src --ext .js",
"lint:watch": "onchange 'src/**/*.js' -- eslint {{changed}}",
"start": "styleguidist server",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"styleguide:build": "styleguidist build",
"format": "prettier --write \"**\""
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment