gpt4 book ai didi

node.js - npm i 运行命令 - 失败! (退出代码 254)

转载 作者:行者123 更新时间:2023-12-02 14:27:21 26 4
gpt4 key购买 nike

ionic :3.20.0

Node :v8.10.0

npm:5.6.0

npm i ✖ Running command - failed! [ERROR] An error occurred while running npm i (exit code 254):

npm ERR! path 
/Users/lucaszimmermann/Desktop/myApp/node_modules/tsickle/src/main.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod
'/Users/lucaszimmermann/Desktop/myApp/node_modules/tsickle/src/main.js'
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!
/Users/lucaszimmermann/.npm/_logs/2018-04-04T16_41_39_270Z-debug.log

最佳答案

在执行以下操作后,我遇到了类似的问题,该问题已解决。

  1. 删除package-lock.json 文件。

  2. 以管理员模式打开cmd/终端。

  3. 运行命令:npm install

  4. 运行命令:npm update

关于node.js - npm i 运行命令 - 失败! (退出代码 254),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49656445/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com