Device_Management
Device_Management copied to clipboard
最新版本的package.json有点问题
cnpm install会出错
抱歉,不知道你报啥错? 我刚重新把项目从github上下载下来运行是没啥问题。
我是win64环境,刚刚的报错我忘截图了,回头我再npm install一下,贴上来
嗯嗯,我也是win7,64位操作系统,当前项目所有包都在,甚至都不需要npm...不过可能过一段时间,github会将node-modules内容删除,才需要npm安装依赖。
root@zhangyang9 MINGW64 ~/Desktop/github/Device_Management-master $ npm install npm ERR! Windows_NT 6.3.9600 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\ node_modules\npm\bin\npm-cli.js" "install" npm ERR! node v6.10.3 npm ERR! npm v3.10.10 npm ERR! file C:\Users\root\Desktop\github\Device_Management-master\package.json npm ERR! code EJSONPARSE
npm ERR! Failed to parse json npm ERR! Trailing comma in object at 20:3 npm ERR! } npm ERR! ^ npm ERR! File: C:\Users\root\Desktop\github\Device_Management-master\package.jso n 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. npm ERR! Tell the package author to fix their package.json file. JSON.parse
npm ERR! Please include the following file with any support request: npm ERR! C:\Users\root\Desktop\github\Device_Management-master\npm-debug.log
不知道是不是你的node.exe路径没有修改? 应该我的项目node.exe路径和你的不一样吧?你尝试不去npm install,直接运行www文件试试。
"svg-captcha": "^1.3.4", package.json文件中此行后面的逗号“,”去掉,npm install的时候就不会出现@zygmcc所说的报错了。