此命令无效:npm install--save dev node--sass@4.7.2

此命令无效:npm install--save dev node--sass@4.7.2,npm,Npm,在使用命令npm install--save dev node将node sass安装到windows7中时,我遇到上述错误--sass@4.7.2 有人能帮我吗?提前感谢。您可以尝试阅读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'

在使用命令npm install--save dev node将
node sass
安装到windows7中时,我遇到上述错误--sass@4.7.2


有人能帮我吗?提前感谢。

您可以尝试阅读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--sass
的包,该包在NPM中不存在,而不是所需的包
node-sass
,该包在NPM中不存在。

您使用的是哪个版本的node?尝试
npm更新节点-sass@latest
或检查此链接:版本是v12.16.3,您的意思是根据链接,v12.16.3的节点版本不支持sass的d 4.7.2版本检查Nicholas Carey回答,哈哈!正确的!编程中常见的错误,假设它是这么说的但是Nicholas Carey我刚刚编写了命令npm install--save dev node-sass@4.7.2C:\Users\HARIKA\Desktop\bootstrapassign1\Bootstrap4\conflusion\node\uu模块\node sass gyp ERR!节点-v12.16.3 gyp错误!节点gyp-v3.8.0GYP错误!不正常生成失败,错误代码:1 npm WARNconfusion@1.0.0没有存储库字段。npm错误!代码ELIFECYCLE npm ERR!错误1 npm错误!节点-sass@4.7.2postinstall:
节点脚本/build.js
npm错误!退出状态1 npm错误!npm错误!在节点上失败-sass@4.7.2安装后脚本。npm错误!这可能不是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.
               ^^^^^^^^^^