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

npm ERR! Failed at the [email protected] preinstall script. #6

Open
akrisiun opened this issue Mar 6, 2018 · 0 comments
Open

npm ERR! Failed at the [email protected] preinstall script. #6

akrisiun opened this issue Mar 6, 2018 · 0 comments

Comments

@akrisiun
Copy link

akrisiun commented Mar 6, 2018

Hi, with Windows 10 winver 1607 (14393.2068) and npm -v 5.6.0 and nodejs -v 8.9.4

i am running git clone https://github.com/ArnaudRinquin/local_modules_poc
and npm i and getting error:

npm ERR! Failed at the [email protected] preinstall script.

PS D:\Beta\NodeJS\local_modules_poc> npm i
NPM: C:\Program Files\nodejs\\node.exe C:\Program Files\nodejs\\node_modules\npm\bin\npm-cli.js http://192.168.2.106:58
68

> [email protected] preinstall D:\Beta\NodeJS\local_modules_poc
> rm-local-modules -v

'rm-local-modules' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] preinstall: `rm-local-modules -v`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\AndriusK\AppData\Roaming\npm-cache\_logs\2018-03-06T06_28_38_361Z-debug.log

IMHO packages.json should end with:

  "repository": {
    "type": "git", "url": "git+https://github.com/ArnaudRinquin/local_modules_poc.git"
  },
  "scripts": {
    "start": "node index.js",
    "preinstall": "rm-local-modules -v"
  },
  "author": "Arnaud Rinquin",
  "license": "MIT",
  "devDependencies": {
    "rm-local-modules": "0.0.2"
  }
}

# Finally success!
npm i
> [email protected] preinstall D:\Beta\NodeJS\local_modules_poc
> rm-local-modules -v

Tried to remove 3 local module(s):
my-custom-module ✔
my-other-module ✔
underscore ✔
added 3 packages in 0.958s

Probably with global rm-local-modules preinstallation yours sample working, I dont' known.
But I think Your sample is targeting for NPM begginers and stupid configution errors
with fresh install looks so weird.

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

No branches or pull requests

1 participant