本地存在时找不到

本地存在时找不到

本文介绍了错误本地Npm模块"jshint-stylish";本地存在时找不到(通过symlink)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我有一个grind文件,该文件夹中有一个Linux符号链接到我的文件夹中名为node_modules的linux符号链接,但是当我运行grunt时,我得到了这个提示:

I have a linux symlink to a folder called node_modules in my folder with the grunt file but when I run grunt I get this:

找不到本地Npm模块"jshint-stylish".安装了吗?

Local Npm module "jshint-stylish" not found. Is it installed?

我所有其他的npm模块工作正常,有什么想法吗?

All my other npm modules work fine,any ideas?

我的咕unt声文件:

module.exports = function (grunt) {
  grunt.loadNpmTasks('grunt-shell');
  grunt.loadNpmTasks('grunt-open');
  grunt.loadNpmTasks('grunt-contrib-watch');
  grunt.loadNpmTasks('grunt-contrib-clean');
  grunt.loadNpmTasks('grunt-contrib-concat');
  grunt.loadNpmTasks('grunt-contrib-copy');
  grunt.loadNpmTasks('grunt-contrib-connect');
  grunt.loadNpmTasks('grunt-karma');
  grunt.loadNpmTasks('grunt-closure-compiler');
  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('jshint-stylish');

权限:

me@pc:~/dev/root/node_modules$ ls -l
total 96

..
drwxr-xr-x 3 me me 4096 Jun 10 14:57 grunt-shell
drwxr-xr-x 3 me me 4096 Jun 10 15:00 jshint-stylish

..

EDIT _____________________作为记者,我很不高兴地使用它:

EDIT_____________________I'm using it in grunt as a reporter:

  jshint: {
      options: {
        jshintrc: '.jshintrc',
        reporter: require('jshint-stylish')
      },
      all: [

推荐答案

尝试手动安装模块.

npm install jshint-stylish

为我工作.

这篇关于错误本地Npm模块"jshint-stylish";本地存在时找不到(通过symlink)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 12:30