标签: grunt-sass-lint

未找到 Npm 模块“grunt-sass”。是否已安装?

我使用的是 windows 10。已安装 npm 版本 5.6.0、node v8.10.0 和 Python 2.7。

获得咕噜-萨斯未安装甚至使用命令“故宫安装”安装NPM之后。之后,我使用命令安装了 grunt:

npm install -g grunt-cli
Run Code Online (Sandbox Code Playgroud)

此外,有时会收到类似的错误

Node Sass 尚不支持您当前的环境:Windows 64-bit with Unsupported runtime”

任何帮助将真正appriciated。

node.js npm gruntjs google-api-nodejs-client grunt-sass-lint

6
推荐指数
1
解决办法
8314
查看次数

VS 2019 gruntfile.js 使用 'sass = require('node-sass')' 时找不到任务

我第一次尝试在新的 .Net Core 3.1 Web 应用程序上设置 grunt-sass。我已经通过MSFT的步骤去咕噜添加到这里列出一个项目在这里,然后从咕噜-萨斯指示的步骤修改了它在这里

然而,这会导致任务运行器资源管理器声明没有找到任务。这是我的 package.json:

{
  "name": "chapelstudios_www",
  "version": "0.0.2",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "repository": {
    "type": "git",
    "url": "git+https://me@bitbucket.org/me/chapelstudios_www.git"
  },
  "author": "mr",
  "license": "ISC",
  "homepage": "https://bitbucket.org/me/chapelstudios_www#readme",
  "private": true,
  "devDependencies": {
    "grunt": "^1.0.4",
    "grunt-cli": "^1.3.2",
    "grunt-sass": "^3.1.0",
    "node-sass": "^4.13.1"
  },
  "dependencies": {
    "gulp": "^4.0.2"
  }
}
Run Code Online (Sandbox Code Playgroud)

这是我的 gruntfile.js:

const sass = require('node-sass');
require('load-grunt-tasks')(grunt);

module.exports = function (grunt) {
    // Project …
Run Code Online (Sandbox Code Playgroud)

gruntjs node-sass grunt-sass-lint visual-studio-2019 .net-core-3.1

6
推荐指数
1
解决办法
1800
查看次数