NPM eslint-scope 3.7.3 404 錯誤

最近接觸一個 React 相關的案子,由於客戶有指定開發環境,因此必須按照他們提供的 package.json 建立。

在執行 npm install 時,發生以下錯誤。

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.3.tgz
npm ERR! 404
npm ERR! 404  '@types/eslint-scope@^3.7.0' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'webpack'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

上 Stack Overflow 搜尋後,雖然情境不太一樣,但是後來透過 npm login 這個指令登入了 npm 之後,再次執行 npm install 就解決了。

Eric Chuang
Eric Chuang

正職是廣告行銷人員,因為 Google Tag Manager 的關係開始踏入網站製作的領域,進一步把 WordPress 當成 PHP + HTML + CSS + JavaScript 的學習教材。此外,因為工作的關係,曾經用 Automattic 的 Underscores (_s) 替客戶與公司官網進行全客製化佈景主題開發。

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *


這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料。

DMCA
PROTECTED