Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install not working since months #188

Open
Raptor05 opened this issue Sep 5, 2019 · 8 comments
Open

Install not working since months #188

Raptor05 opened this issue Sep 5, 2019 · 8 comments

Comments

@Raptor05
Copy link

Raptor05 commented Sep 5, 2019

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

npm WARN [email protected] requires a peer of grunt@~0.4.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of grunt@~0.4.2 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (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
Copy link
Owner

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
Copy link
Author

Raptor05 commented Sep 5, 2019

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
Copy link
Owner

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"
[email protected] /home/bertrand/dev/projects/temp
└─┬ [email protected]
  └─┬ [email protected]
    └─┬ [email protected]
      ├─┬ [email protected]
      │ └── [email protected]  deduped
      └── [email protected] 

can you please try to npm i [email protected] somewhere on your machine, outside the current project ?

@Raptor05
Copy link
Author

Raptor05 commented Sep 5, 2019

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

PS C:\Users\mdeppe\Downloads\test> npm i [email protected]

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
Copy link
Owner

ok thanks for reporting it to jsdoc/jsdoc#1684*
please keep me informed

@krampstudio
Copy link
Owner

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

@Raptor05
Copy link
Author

Raptor05 commented Sep 6, 2019

@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
Copy link

maks232 commented Nov 16, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants