Closed jycouet closed 6 years ago
Tried but couldn't reproduce it.
yes , i have same problem . yarn v1.3.2 node 8.9.1 platform mac os 10. 13.1
Could be Node.js specific
I think that's the part of yarn that handles yarn.lock
; is it possible that's corrupted? Can you rename it (for further testing) and try running yarn again?
Hi, I just found my issue thx to @rhendric Yes my file was corrupted... I was copying only half of the file!!!
I owe you a 🍺
Hi, I'm running yarn on windows. Installed with the MSI installer. current version is 1.4.0-20180115.1714, this problem occurs in yarn 1.3.2 also. It's reacting really slow to any command and then thinks for a while when printing out: (Can be good to mention that i'm behind a corporate proxy. Not sure how much this matters).
I actually get the same result if I do "yarn init"
yarn run v1.4.0-20180115.1714 error An unexpected error occurred: "Invalid string length". info If you think this is a bug, please open a bug report with the information provided in "C:\\\\\\yarn-error.log". info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Currently running Node v8.9.1.
Here is my package.json:
{ "name": "Gui", "version": "1.0.0", "description": "Hacking", "main": "server.js", "license": "UNLICENSED", "repository": {}, "scripts": { "start": "SET NODE_ENV=development && webpack --color", "watch": "SET NODE_ENV=development && webpack --watch --color --progress", "webserver": "SET NODE_ENV=development&& webpack-dev-server --hot --colors", "watch:prod": "yarn build:prod --watch", "watch:dev": "yarn build:dev --watch", "build:prod": "yarn build --env.env=production", "build:dev": "yarn build --env.env=development", "build": "webpack --color --progress", "wd": "yarn watch:dev" }, "dependencies": { "FitText": "davatron5000/FitText.js", "applicationinsights-js": "1.0.14", "fittextjs": "1.2.0", "flexboxgrid": "6.3.1", "jquery": "3.2.1", "jquery-mobile": "1.5.0-alpha.1", "jquery-ui": "1.12.1", "json-stringify-safe": "moll/json-stringify-safe", "knockouch": "yaroslavya/knockouch", "knockout": "3.4.2", "knockout-postbox": "0.6.0", "moment": "2.19.1", "ms-signalr-client": "2.2.7", "slipjs": "pornel/slip", "underscore": "1.8.3", "virtual-keyboard": "1.27.0" }, "devDependencies": { "@types/applicationinsights-js": "1.0.5", "@types/jquery": "3.2.13", "@types/jqueryui": "1.11.37", "@types/knockout": "3.4.46", "@types/knockout.postbox": "0.0.28", "@types/signalr": "2.2.35", "@types/underscore": "1.8.3", "@types/virtual-keyboard": "1.26.0", "assets-webpack-plugin": "3.5.1", "copy-webpack-plugin": "4.2.3", "css-loader": "0.28.7", "extract-text-webpack-plugin": "3.0.2", "html-loader": "0.5.1", "ignore-loader": "0.1.2", "node-sass": "4.7.2", "sass-loader": "6.0.6", "ts-loader": "3.2.0", "tslint": "5.8.0", "tslint-loader": "3.5.3", "typescript": "2.6.2", "webpack": "3.9.1", "webpack-merge": "4.1.1", "yarn": "1.3.2" }, "author": "Roger" }
Trace: RangeError: Invalid string length at tokenise (C:\Users\rogsan01\Programs\Yarn\lib\cli.js:61500:21) at tokenise.next (<anonymous>) at Parser.next (C:\Users\rogsan01\Programs\Yarn\lib\cli.js:61624:28) at Parser.parse (C:\Users\rogsan01\Programs\Yarn\lib\cli.js:61672:30) at parse (C:\Users\rogsan01\Programs\Yarn\lib\cli.js:61845:17) at module.exports.exports.default (C:\Users\rogsan01\Programs\Yarn\lib\cli.js:61409:96) at YarnRegistry.<anonymous> (C:\Users\rogsan01\Programs\Yarn\lib\cli.js:91623:64) at Generator.next (<anonymous>) at step (C:\Users\rogsan01\Programs\Yarn\lib\cli.js:98:30) at C:\Users\rogsan01\Programs\Yarn\lib\cli.js:109:13
Not sure what to try?
Should be: proxy http://proxy.xx.se:98 https-proxy http://proxy.xx.se:98
Was: proxy=http://proxy.xx.se:98 https-proxy=http://proxy.xx.se:98
Bye :+1:
Cool, looks like resolved, thanks for reporting
Hello,
I'm using yarn
v1.3.2
and I have a bug.What is the current behavior? I'm running yarn from js like this:
And I often get:
"stderr": "error An unexpected error occurred: \"Invalid string length\".\n"
Here is my trace:
You you can see the package.json that I have (nothing really special?):
I don't get what could be the issue; Could you help me please?
Please mention your node.js, yarn and operating system version. node: 8.7.0 yarn 1.3.2 On windows and Linux
Thank you