简体   繁体   English

按照https://github.com/liferay/alloy-ui的指示进行npm install错误

[英]npm install error while following instructions from https://github.com/liferay/alloy-ui

The following error appears while installing local dependencies by following the instructions from this Github/Alloyui link. 按照此Github / Alloyui链接中的说明安装本地依赖项时,会出现以下错误。

I am using Windows 7 Os 我正在使用Windows 7 Os

C:\Users\Admin.HOME-PC>npm install 
npm ERR! install Couldn't read dependencies
npm ERR! Failed to parse json
npm ERR! Unexpected end of input
npm ERR! File: C:\Users\Admin.HOME-PC\package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.<br>
npm ERR! Tell the package author to fix their package.json file. JSON.parse

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd C:\Users\Admin.HOME-PC
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.11
npm ERR! file C:\Users\Admin.HOME-PC\package.json
npm ERR! code EJSONPARSE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Users\Admin.HOME-PC\npm-debug.log
npm ERR! not ok code 0

Can please some one say how to over come this issue. 可以请一些人说如何解决这个问题。

Thanks in advance. 提前致谢。

Regards, 问候,
Dinesh MK 迪内什MK

CHeck your package.json file. 检查您的package.json文件。 It contain some error. 它包含一些错误。

If you want to use AlloyUI in your project, download it from Alloy website and include it in your app as explained. 如果要在项目中使用 AlloyUI,请从Alloy网站下载它,然后按照说明将其包含在您的应用程序中。

If you want to customize or play with AlloyUI source, you have to follow the setup instructions on the Github repo. 如果要自定义或使用AlloyUI源,必须遵循Github存储库上的设置说明。 Make soure you've cloned the repository first, then cd {cloned_repo} and run npm install (and so on as described). 确保已先克隆存储库,然后再克隆cd {cloned_repo}并运行npm install (依此类推)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从github安装NPM依赖项 - Install NPM dependency from github 如何使用ng-2表从静态JSON获取表https://github.com/valor-software/ng2-table.iam的数据 - how to get data from static JSON for table, https://github.com/valor-software/ng2-table.iam using ng-2 table pa11y json 动作配置文件:https://github.com/pa11y/pa11y#actions - pa11y json configuration file for actions : https://github.com/pa11y/pa11y#actions 我从这个站点请求我的 IP 时收到此错误 - https://iplocation.com/ - I got this error while requesting my IP from this site - https://iplocation.com/ 从Alloy UI数据表创建JSON - Creating JSON from Alloy UI DataTable &#39;npm install connect&#39;错误 - 'npm install connect' error 什么是错误率! 代码 ENOLOCAL npm ERR! 无法安装错误? - What is the ERR! code ENOLOCAL npm ERR! Could not install from error? 尝试从 Java 连接到 Https url 时出现 401 错误 - 401 error while trying to connect to a Https url from Java 运行npm install命令时意外结束JSON输入错误。是否修复了此问题? - Unexpected end of JSON input error while running npm install command.Any fix to this issue? 无效 json 尝试运行时出错的响应正文 npm install bootstrap --save - invalid json response body at error while try to run npm install bootstrap --save
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM