json - 使用 npm 审计修复后未找到 package.json
问题描述
我正在尝试安装 sass,但我不明白为什么我一直遇到如下所示的问题
我知道我应该按照说明运行npm audit fix
,但是当我运行命令时,我得到一个错误no package.json found
,是的,这是因为根本没有安装 sass,因此没有节点模块和 json 文件,我该怎么做解决这个问题?
解决方案
Try running the npm init
command at the root of your project to generate the package.json
file and re run the command to install sass.
推荐阅读
- amazon-s3 - 如何将文件夹上传到数字海洋空间?
- java - 可执行 jar 文件在双击时不运行
- volatility - 波动性缺少 MODULE LICENSE()
- python - 'str'对象在python中没有属性'get'
- java - 无法在 Heroku 上访问 Spring 中上传的资源
- reactjs - React TDD - 如何获取内部文本?
- oracle - NO_DATA_FOUND 异常与 FOR 循环
- python - 学校的家庭作业不工作垃圾邮件或只是不工作
- windows-installer - 我正在.net 中进行设置和部署,我无法用较新的版本替换现有版本,需要一些指导
- html - CSS 中的微光效果