I'm getting this error when running npm install --save-dev gulp-coffee
我在运行npm install --save-dev gulp-coffee时遇到此错误
ENOENT: No such file or directory
ENOENT:没有这样的文件或目录
I have a package.json file in my root directory though
我虽然在我的根目录中有一个package.json文件
Didn't have any issues yesterday installing node modules but today I can't install dependencies
昨天安装节点模块没有任何问题,但今天我无法安装依赖项
1 个解决方案
#1
1
nothing seemed to work from other similar problems on *, I ended up just deleting my repo. Then:
似乎没有任何东西可以解决*上的其他类似问题,我最终只是删除了我的回购。然后:
git clone [my github url repo]
- git clone [my github url repo]
cd [folder with node dependencies]
- cd [具有节点依赖性的文件夹]
-
npm install
(installs node packages based on root package.json file) - npm install(根据root package.json文件安装节点包)
- Run my gulp commands to test
gulp watch
, modified files being watched to see if gulp was working as intended. check to see files being changed as intended via git diff - 运行我的gulp命令来测试gulp watch,修改被监视的文件以查看gulp是否按预期工作。通过git diff检查文件是否按预期更改
Worked fine for me, it doesn't solve the original problem. Not sure why my package.json files were missing or why I could not repopulate them with a npm init
对我来说工作得很好,它并没有解决原来的问题。不知道为什么我的package.json文件丢失或为什么我不能用npm init重新填充它们
#1
1
nothing seemed to work from other similar problems on *, I ended up just deleting my repo. Then:
似乎没有任何东西可以解决*上的其他类似问题,我最终只是删除了我的回购。然后:
git clone [my github url repo]
- git clone [my github url repo]
cd [folder with node dependencies]
- cd [具有节点依赖性的文件夹]
-
npm install
(installs node packages based on root package.json file) - npm install(根据root package.json文件安装节点包)
- Run my gulp commands to test
gulp watch
, modified files being watched to see if gulp was working as intended. check to see files being changed as intended via git diff - 运行我的gulp命令来测试gulp watch,修改被监视的文件以查看gulp是否按预期工作。通过git diff检查文件是否按预期更改
Worked fine for me, it doesn't solve the original problem. Not sure why my package.json files were missing or why I could not repopulate them with a npm init
对我来说工作得很好,它并没有解决原来的问题。不知道为什么我的package.json文件丢失或为什么我不能用npm init重新填充它们