在安装本地依赖项时,按照此Github/Alloyui链接的说明显示以下错误。
我使用的是Windows 7操作系统
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请有人说一下如何克服这一问题。
提前谢谢。
致以敬意,
迪内什M K
发布于 2013-10-26 07:19:32
如果您想在您的项目中使用 AlloyUI,请从合金网站下载它,并将其包括在您的应用程序中,如前所述。
如果您想要自定义或使用AlloyUI源代码播放,您必须按照Github上的设置说明进行操作。首先克隆存储库,然后运行cd {cloned_repo}和运行npm install (等等)。
发布于 2013-10-26 05:02:49
CHeck您的package.json文件。它包含了一些错误。
https://stackoverflow.com/questions/19602999
复制相似问题