mocha.js - 使用 mocha 安装时出错 npm 测试。我正在使用 VS 代码
问题描述
npm test
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\dell\Documents\Gan-crypt\package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\dell\Documents\Gan-crypt\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\dell\AppData\Roaming\npm-cache\_logs\2021-09-06T05_30_21_377Z-debug.log
解决方案
推荐阅读
- javascript - JavaScript 错误的整数除法结果
- spring-boot - 使用 Spring Cacheable 的 L1 + L2 缓存策略
- sql - PostgreSQL 中带日期的百分比
- html - 翻译html文件并保存
- oracle - 如何在 Oracle 11g 中使用 SQLPLUS 调用包体内的过程
- xml - 避免在 XML 中的许多地方重复目录位置
- azure - Azure AD - 如何检查是否正在使用服务主体?
- sql-server - SQL 日期维度,用于如何在第二个星期二之后的第一个星期三编写
- python - python 2.7套接字设置身份验证头
- python - NLTK Python TypeError:“模块”对象不可调用