如何为package.json添加注释以进行npm安装?
我有一个简单的package.json文件,我想添加一条注释。有没有办法做到这一点,或者有什么技巧可以做到这一点? { "name": "My Project", "version": "0.0.1", "private": true, "dependencies": { "express": "3.x", "mongoose": "3.x" }, "devDependencies" : { "should": "*" /* "mocha": "*" not needed as should be globally installed */ } } 上面的示例注释在npm中断时不起作用。我也尝试过//样式注释。