[英]Getting 'npm WARN deprecated' warnings while running npm install commands
[英]npm Install Errors & npm WARN deprecated
無法安裝來自 node.js 11.15.0 的 gulp。 我也嘗試了 10.x 版本,它拋出了同樣的錯誤。
$ npm install -g gulp-cli
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
changed 265 packages, and audited 266 packages in 57s
6 packages are looking for funding
run `npm fund` for details
3 low severity vulnerabilities
To address all issues, run:
npm audit fix
Run `npm audit` for details.
誰能幫我安裝 gulp?
我嘗試刪除 node_modules 目錄,然后使用"npm cache clear --force"
命令清除緩存。 但沒有運氣。
另外,當我運行 npm 安裝時出現問題
$ npm install
npm ERR! code 1
npm ERR! path C:\..........\node_modules\node-sass
npm ERR! command failed
....
npm ERR! gyp ERR! node -v v11.15.0
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed with error code: 1
最后我得到了它。 npm 在我的 windows 系統中安裝工作正常。
刪除 node_modules 目錄和 package-lock.json 然后使用此命令清除緩存
npm cache clear --force
並且我刪除了 npm 和 npm-cache 文件夾C:\Users\USERNAME\AppData\Roaming\npm和Z0D61F8370CAD1D412F80B84D143E1257Roaming:\Users-cacheNAME
然后我嘗試安裝 npm
npm install
我希望這可以對某人有所幫助。
如果您遇到同樣的問題,請嘗試在 Netlify 上部署您的應用程序,然后您將看到構建日志,以便您修復代碼!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.