最新消息: 电脑我帮您提供丰富的电脑知识,编程学习,软件下载,win7系统下载。

NPM重命名嵌套的项目结构错误

IT培训 admin 6浏览 0评论

NPM重命名嵌套的项目结构错误

我有一个嵌套了子项目自己的一个的package.json项目的NodeJS。如果我更改了子项目的任何依赖我得到这样一个错误:

npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/home/travis/build/phylogeny-explorer/explorer/node_modules/.staging/user-api-9886b2c7/node_modules/basic-auth' -> '/home/travis/build/phylogeny-explorer/explorer/node_modules/.staging/basic-auth-38c0f109'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

他们甚至删除包lock.json和node_modules后持续存在。这取决于你将运行中,.staging/basic-auth-38c0f109部分更改包名称和最终的哈希值。我观察这个错误甚至在特拉维斯CI运行 -

根级依赖性的改变,没有错误工作正常。

它看起来像一些巴贝尔自动生成的东西,但我不能告诉什么是错的。

有关项目的代码是在

回答如下:

这是由https://github/npm/cli/pull/86修正了一个错误

更新您的NPM到v6.8.0添-next.2如果您遇到此问题。

NPM重命名嵌套的项目结构错误

我有一个嵌套了子项目自己的一个的package.json项目的NodeJS。如果我更改了子项目的任何依赖我得到这样一个错误:

npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/home/travis/build/phylogeny-explorer/explorer/node_modules/.staging/user-api-9886b2c7/node_modules/basic-auth' -> '/home/travis/build/phylogeny-explorer/explorer/node_modules/.staging/basic-auth-38c0f109'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

他们甚至删除包lock.json和node_modules后持续存在。这取决于你将运行中,.staging/basic-auth-38c0f109部分更改包名称和最终的哈希值。我观察这个错误甚至在特拉维斯CI运行 -

根级依赖性的改变,没有错误工作正常。

它看起来像一些巴贝尔自动生成的东西,但我不能告诉什么是错的。

有关项目的代码是在

回答如下:

这是由https://github/npm/cli/pull/86修正了一个错误

更新您的NPM到v6.8.0添-next.2如果您遇到此问题。

与本文相关的文章

发布评论

评论列表 (0)

  1. 暂无评论