S
S
saqo_tadevosyan2020-11-20 15:49:13
JavaScript
saqo_tadevosyan, 2020-11-20 15:49:13

How to fix NODE_ICU_DATA?

Good afternoon. We sent the project, after yarn install and yarn start I get the following response. I couldn't find a solution on the internet.
$ NODE_ICU_DATA="$(pwd)/node_modules/full-icu" babel-node --extensions ".ts" tools/run start
"NODE_ICU_DATA" is not an internal or external
command, operable program, or batch file.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

scripts

"scripts": {
        "lint-js": "eslint --ext .ts --ext .tsx --ignore-path .gitignore --ignore-pattern \"!**/.*\" .",
        "lint-css": "stylelint \"src/**/*.{css,less,styl,scss,sass,sss}\"",
        "lint": "yarn run lint-js && yarn run lint-css",
        "fix-js": "yarn run lint-js --fix",
        "fix-css": "yarn run lint-css --fix",
        "fix": "yarn run fix-js && yarn run fix-css",
        "codegen": "babel-node --extensions \".ts\" tools/run codegen",
        "test": "tsc && jest",
        "test-watch": "yarn run test --watch --notify",
        "test-cover": "yarn run test --coverage",
        "coverage": "yarn run test-cover && opn coverage/lcov-report/index.html",
        "clean": "babel-node --extensions \".ts\" tools/run clean",
        "copy": "babel-node --extensions \".ts\" tools/run copy",
        "bundle": "babel-node --extensions \".ts\" tools/run bundle",
        "build": "babel-node --extensions \".ts\" tools/run build",
        "build-stats": "yarn run build --release --analyse",
        "deploy": "babel-node --extensions \".ts\" tools/run deploy",
        "render": "babel-node --extensions \".ts\" tools/run render",
        "serve": "babel-node --extensions \".ts\" tools/run runServer",
        "start": "NODE_ICU_DATA=\"$(pwd)/node_modules/full-icu\" babel-node --extensions \".ts\" tools/run start"
    },

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
twolegs, 2020-11-20
@saqo_tadevosyan

It looks like you are trying to run a script on windows that is not designed for this.
NODE_ICU_DATA is an environment variable, try setting it via cross-env ( https://www.npmjs.com/package/cross-env ). But not sure. that pwd will work even in this case.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question