您是否要请求功能或报告错误?
一个错误。
目前的行为是什么?
当我尝试使用命令yarn init
进行初始化时,在问题entry point (index.js)
之后出现以下错误:
error An unexpected error occurred: "Cannot convert object to primitive value".
请提及您的node.js,yarn和操作系统版本。
node.js:v6.9.2
纱:v0.17.10
发行人ID:Ubuntu
说明:Ubuntu 16.04.1 LTS
发行:16.04
代号:xenial
从yarn-error.log文件跟踪:
Arguments:
/usr/bin/nodejs /usr/share/yarn/bin/yarn.js init
PATH:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
Yarn version:
0.17.10
Node version:
6.9.2
Platform:
linux x64
npm manifest:
{
"name": "dataextractor",
"version": "4.7.5",
"description": "Script to extract data from files",
"author": "Marcelo Franco Filipe Alves <[email protected]>",
"private": true,
"engines": {
"node": "6.7.0",
"npm": "3.10.8"
},
"repository": {
"type": "git",
"url": "https://github.com/Garimpo/DataExtractor"
},
"bugs": {
"url": "https://github.com/Garimpo/DataExtractor/issues"
},
"scripts": {
"start": "node-dev ./index.ls"
},
"dependencies": {
"@extract/textract": "4.1.0",
"async": "1.5.2",
"chalk": "1.1.1",
"debug": "2.2.0",
"glob": "7.0.3",
"inquirer": "1.0.2",
"livescript": "1.5.0",
"mime": "1.3.4",
"node-dev": "3.1.3",
"node-xlsx": "0.7.1"
},
"devDependencies": {
"gulp": "3.9.1",
"gulp-js-obfuscator": "1.0.0",
"gulp-livescript": "3.0.1"
},
"license": "UNLICENSED"
}
yarn manifest:
No manifest
Lockfile:
No lockfile
Trace:
TypeError: Cannot convert object to primitive value
at Object.<anonymous> (/usr/share/yarn/lib/cli/commands/init.js:93:27)
at next (native)
at step (/usr/share/yarn/node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30)
at /usr/share/yarn/node_modules/babel-runtime/helpers/asyncToGenerator.js:28:13
at process._tickCallback (internal/process/next_tick.js:103:7)
与#1924不一样吗?
@sebn是的,谢谢👍
@旁观者关闭; #1924的欺骗
对不起这是我的错。 我写了评论,但错过了结😞