错误:使用 pnpm 找不到模块"更少"



我试图使用 pnpm,但在构建机器上收到此错误:

Error: Cannot find module 'less'
        at Function.Module._resolveFilename (module.js:339:15)
        at Function.require.resolve (internal/module.js:23:19)
        at resolve_engine_path (C:BuildAgent_workWebAppnode_modules.registry.npmjs.orgaccord.26.4node_modulesaccordlibindex.js:65:18) at Object.exports.load (C:BuildAgent_workWebAppnode_modules.registry.npmjs.orgaccord.26.4node_modulesaccordlibindex.js:25:19) at Object.<anonymous> (C:BuildAgent_workWebAppnode_modules.registry.npmjs.orggulp-less3.3.0node_modulesgulp-lessindex.js:9:29) at Module._compile (module.js:413:34)
            at Object.Module._extensions..js (module.js:422:10)
            at Module.load (module.js:357:32)
            at Function.Module._load (module.js:314:12)
            at Module.require (module.js:367:17)
            ##[error]Running build failed.
            ##[error]Error:
            ##[error]System.Exception: Failed to run gulp build-release

我试图重新考虑此错误,但无法弄清楚如何让 pnpm 安装模块。考虑到这个问题,这应该已经重新考虑了:https://github.com/pnpm/pnpm/issues/118

一些包.json:

"devDependencies": {
    "aurelia-bundler": "^0.3.2",
    "aurelia-tools": "^0.1.0",
    "babel-eslint": "^4.1.6",
    "del": "^1.1.0",
    "eslint": "^1.10.3",
    "eslint-plugin-aurelia": "^0.3.0",
    "gulp": "^3.8.10",
    "gulp-babel": "^5.1.0",
    "gulp-bump": "^0.1.11",
    "gulp-changed": "^1.1.0",
    "gulp-concat": "^2.5.2",
    "gulp-cssmin": "^0.1.7",
    "gulp-eslint": "^1.1.1",
    "gulp-jshint": "^1.9.0",
    "gulp-less": "^3.0.1",
    "gulp-plumber": "^0.6.6",
    "gulp-shell": "^0.4.0",
    "gulp-sourcemaps": "^1.3.0",
    "gulp-uglify": "^1.1.0",

有人遇到这个问题并解决了它吗?如果我缺少一些信息,请告诉我!

您可以在终端中运行npm install less

相关内容

  • 没有找到相关文章

最新更新