我是新来的...到目前为止,没有留下深刻的印象。
我正在尝试安装Drupal Barrio SASS主题,并且无法运行命令:
npm install --global gulp-cli
部分运行,然后我得到:
npm ERR! Unexpected end of JSON input while parsing near '...,"dependencies":{"fin'
我不知道可能缺少哪些“依赖项”,因为日志文件中没有任何内容表明可能缺少了什么。
我去了Getting Started page并进行了预检查:
% node --version
v12.17.0
% npm --version
6.14.4
% npx --version
10.2.2
我运行npm install --global gulp-cli
时失败。这是日志文件中的“错误”:
21 silly fetchPackageMetaData error for liftoff@^3.1.0 Unexpected end of JSON input while parsing near '...,"dependencies":{"fin' 68 silly fetchPackageMetaData error for interpret@^1.1.0 Unexpected end of JSON input while parsing near '...interpret/-/interpret' 71 verbose stack SyntaxError: Unexpected end of JSON input while parsing near '...,"dependencies":{"fin' 71 verbose stack at parseJson (/usr/local/lib/node_modules/npm/node_modules/json-parse-better-errors/index.js:7:17) 77 error Unexpected end of JSON input while parsing near '...,"dependencies":{"fin'
我想念什么?
谢谢!