2017-09-28 37 views
0

刪除「@」更新到新公共管理的最新版本後[5.4.2],我開始收到此錯誤 -
npm ERR! cb() never called!NPM 5.4.2 - 從作用域包名

我知道那是因爲我的作用域包名 - 當嘗試執行npm publishnpm pack時,它將從文件夾名稱中刪除'@'符號。

這條道路 -
'C:\ ProgramData \的Git \ NGX菜單\ DIST \ savantly \ NGX-menu.es5.js'

實際上應該是這條道路 -
「C:\ ProgramData \的Git \ NGX菜單\ DIST \ @savantly \ NGX-menu.es5.js'

使用節點版本 - 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 
+0

在這裏創造一個問題這個 - https://github.com/npm/npm/issues/18658 – Jeremy

回答

1

這似乎與故宮V5.4.0問題 - v5.4.2

我回滾到v5.3.0,它再次正常工作。

npm i -g [email protected]