该命令不起作用:npm install --save-dev node--sass@4.7.2

时间:2020-05-27 18:44:03

标签: npm

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/node--sass - Notfound
npm ERR! 404
npm ERR! 404  'node--sass@4.7.2' 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
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\HARIKA\AppData\Roaming\npm-cache\_logs\2020-05- 
       27T19_25_06_044Z-debug.log

C:\Users\HARIKA\Desktop\bootstrapassign1\Bootstrap4\conFusion>node-v 'node-v' 
is not recognized as an internal or external command,operable program or 
batch file.

使用命令node-sassnpm install --save-dev node--sass@4.7.2安装到Windows7中时,出现上述错误。

有人可以帮我吗?预先谢谢你。

1 个答案:

答案 0 :(得分:1)

您可以尝试阅读NPM正在记录的错误消息:

npm ERR! 404 Not Found - GET https://registry.npmjs.org/node--sass - Notfound
npm ERR! 404
npm ERR! 404  'node--sass@4.7.2' is not in the npm registry.
               ^^^^^^^^^^

您正在尝试安装名为node--sass的软件包,该软件包在NPM中不存在,而不是所需的软件包node-sass,而确实在NPM中存在。