krampstudio / grunt-jsdoc

A grunt plugin to generate javascript doc by running jsdoc3 on your grunt projects.
MIT License
387 stars 83 forks source link

Install not working since months #188

Open Raptor05 opened 5 years ago

Raptor05 commented 5 years ago

I'm getting an error if I try to install the package:

npm WARN grunt-encoding@0.3.0 requires a peer of grunt@~0.4.1 but none is installed. You must install peer dependencies yourself.
npm WARN grunt-folder-list@1.1.0 requires a peer of grunt@~0.4.2 but none is installed. You must install peer dependencies yourself.
npm WARN sapui5-starter-kit@0.0.3 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: uc.micro@1.0.6 (node_modules\@ui5\cli\node_modules\uc.micro):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\mdeppe\Documents\Workspace\Webstorm\mhp-ui5-starterkit\node_modules\@ui5\cli\node_modules\uc.micro' -> 'C:\Users\mdeppe\Documents\Workspace\Webstorm\mhp-ui5-starterkit\no
de_modules\@ui5\cli\node_modules\.uc.micro.DELETE'

npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path C:\Users\mdeppe\Documents\Workspace\Webstorm\mhp-ui5-starterkit\node_modules\uc.micro
npm ERR! dest C:\Users\mdeppe\Documents\Workspace\Webstorm\mhp-ui5-starterkit\node_modules\.uc.micro.DELETE
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\mdeppe\Documents\Workspace\Webstorm\mhp-ui5-starterkit\node_modules\uc.micro' -> 'C:\Users\mdeppe\Documents\Workspace\Webstorm\mhp-ui5-starterkit\node_modules\.uc.micro.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\mdeppe\AppData\Roaming\npm-cache\_logs\2019-09-05T07_48_54_037Z-debug.log

2019-09-05T07_48_54_037Z-debug.log

My versions are: Node: v10.16.2 NPM: 6.11.3 Grunt: grunt-cli v1.3.2, grunt v1.0.4 JSDoc: JSDoc 3.5.5 (Thu, 14 Sep 2017 02:51:54 GMT)

Please help. I need the plugin for creating my documentation.

Thanks in advance & best regards,

Raptor

krampstudio commented 5 years ago

Hello could you please try to remove node_modules and run npm install a new time. Could you please also share a package.json file from which I can reproduce the issue, since I'm able to install it

Raptor05 commented 5 years ago

Thanks for your reply!

Hello could you please try to remove node_modules and run npm install a new time.

unfortunately no improvement

Could you please also share a package.json file from which I can reproduce the issue, since I'm able to install it

Here is my package.json:

{
  "name": "name",
  "version": "0.0.3",
  "description": "description",
  "config": {
    "appFolder": "webapp",
    "namespace": "namespace"
  },
  "scripts": {
    "start": "npm-run-all --parallel lint:watch",
    "init": "node init.js",
    "lint": "esw %npm_package_config_appFolder% --color --rulesdir node_modules/@sap/di.code-validation.js/src/defaultConfig/fioriCustomRules/.eslintrules",
    "lint:watch": "npm run lint -- --watch --fix",
    "less": "lessc .\\%npm_package_config_appFolder%\\css\\customstyle.less .\\%npm_package_config_appFolder%\\css\\customstyle.css"
  },
  "author": "Donald Duck",
  "license": "MIT",
  "dependencies": {
    "npm": "^6.11.3",
    "replace": "^1.1.1",
    "update": "^0.7.4"
  },
  "devDependencies": {
    "@sap/di.code-validation.js": "^1.1.6",
    "@sap/di.code-validation.xml": "^1.1.16",
    "@ui5/cli": "1.8.1",
    "@ui5/uiveri5": "^1.40.0",
    "chalk": "^2.4.2",
    "cross-var": "^1.1.0",
    "eslint": "^6.3.0",
    "eslint-plugin-import": "^2.18.2",
    "eslint-watch": "^6.0.0",
    "grunt": "^1.0.4",
    "grunt-cli": "^1.3.2",
    "grunt-contrib-clean": "^2.0.0",
    "grunt-contrib-copy": "^1.0.0",
    "grunt-contrib-cssmin": "^3.0.0",
    "grunt-contrib-less": "^2.0.0",
    "grunt-contrib-uglify": "^4.0.1",
    "grunt-encoding": "^0.3.0",
    "grunt-eslint": "^22.0.0",
    "grunt-folder-list": "^1.1.0",
    "grunt-mkdir": "^1.0.0",
    "grunt-nwabap-ui5uploader": "^0.3.4",
    "grunt-openui5": "^0.15.0",
    "grunt-zip": "^0.18.2",
    "ink-docstrap": "^1.3.2",
    "jasmine-core": "^3.4.0",
    "karma": "^4.3.0",
    "karma-chrome-launcher": "^3.1.0",
    "karma-coverage": "^2.0.1",
    "karma-ie-launcher": "^1.0.0",
    "karma-jasmine": "^2.0.1",
    "karma-ui5": "^1.0.1",
    "less": "^3.10.3",
    "npm-run-all": "^4.1.5",
    "rimraf": "^3.0.0"
  }
}
krampstudio commented 5 years ago

I just had to remove the @sap package because '@sap/di.code-validation.js@^1.1.6' is not in the npm registry.

Otherwise I was able to install it without any issue. image

Based on what you've sent, the issue seems to come from the package uic.micro. It installs correctly on my machine (linux) and I don't have a windows setup to test it. This package is required by jsdoc itself:

npm ls "uc.micro"
name@0.0.3 /home/bertrand/dev/projects/temp
└─┬ grunt-jsdoc@2.4.0
  └─┬ jsdoc@3.6.3
    └─┬ markdown-it@8.4.2
      ├─┬ linkify-it@2.2.0
      │ └── uc.micro@1.0.6  deduped
      └── uc.micro@1.0.6 

can you please try to npm i jsdoc@3.6.3 somewhere on your machine, outside the current project ?

Raptor05 commented 5 years ago

Same issue as before... So it's a problem with JSDoc itself?

PS C:\Users\mdeppe\Downloads\test> npm i jsdoc@3.6.3

npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path C:\Users\mdeppe\Downloads\test\node_modules\uc.micro
npm ERR! dest C:\Users\mdeppe\Downloads\test\node_modules\.uc.micro.DELETE
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\mdeppe\Downloads\test\node_modules\uc.micro' -> 'C:\Users\mdeppe\Downloads\test\node_modules\.uc.micro.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\mdeppe\AppData\Roaming\npm-cache\_logs\2019-09-05T09_38_14_433Z-debug.log
krampstudio commented 5 years ago

ok thanks for reporting it to https://github.com/jsdoc/jsdoc/issues/1684* please keep me informed

krampstudio commented 5 years ago

@Raptor05 I think your issue comes from your anti virus, thinking files with extension .micro are viruses. The same issue than https://github.com/microsoft/vscode/issues/13559

Raptor05 commented 5 years ago

@Raptor05 I think your issue comes from your anti virus, thinking files with extension .micro are viruses. The same issue than microsoft/vscode#13559

This is a good hint. My company is using McAfee anti virus. Unfortunatly I'm not authorized to deactivate the scanner or adding any exceptions to it. But I've contacted the IT helpdesk already and I will keep you informed about the result. Anyway, thanks a lot for your support!

maks232 commented 3 years ago

reported at mcafee https://community.mcafee.com/t5/Enterprise-General-Discussions/McAfee-blocks-jsdoc/td-p/697154#.YZO1FSKn7Mo