简体   繁体   English

npm 5.4.2-从作用域软件包名称中删除“ @”

[英]npm 5.4.2 - removes '@' from scoped package names

After updating to the latest version of npm [5.4.2], I've began getting this error - 更新到npm [5.4.2]的最新版本后,我开始收到此错误-
npm ERR! cb() never called!

I know it is because of my scoped package name - it is removing the '@' symbol from the folder names when trying to do a npm publish or npm pack . 我知道这是因为我的作用域包名称-尝试执行npm publishnpm pack时,它从文件夹名称中删除了'@'符号。

This path - 这条路-
'C:\\ProgramData\\Git\\ngx-menu\\dist\\savantly\\ngx-menu.es5.js' 'C:\\ ProgramData \\ GIT中\\ NGX-菜单\\ DIST \\ savantly \\ NGX-menu.es5.js'

Should actually be this path - 实际上应该是这条路-
'C:\\ProgramData\\Git\\ngx-menu\\dist\\@savantly\\ngx-menu.es5.js' 'C:\\ ProgramData \\ GIT中\\ NGX-菜单\\ DIST \\ @savantly \\ NGX-menu.es5.js'

Using node version - v6.11.3 使用节点版本-v6.11.3

C:\ProgramData\Git\ngx-menu\dist>npm publish
(node:15212) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: ENOENT: no such file or directory, stat 'C:\ProgramData\Git
\ngx-menu\dist\savantly\ngx-menu.es5.js'
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\xxx\AppData\Roaming\npm-cache\_logs\2017-09-28T19_34_50_601Z-debug.log

C:\ProgramData\Git\ngx-menu\dist>npm -v
5.4.2

This appears to be an issue with npm v5.4.0 - v5.4.2 这似乎是npm v5.4.0-v5.4.2的问题

I rolled back to v5.3.0 and it works fine again. 我回滚到v5.3.0,它再次正常运行。

npm i -g npm@5.3.0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM