Giter VIP home page Giter VIP logo

Comments (5)

borisdiakur avatar borisdiakur commented on May 18, 2024 1

@webernir Yes, you can disable all scripts using the --ignore-scripts argument which will cause npm to not execute any scripts defined in the package.json.

npm install n_ -g --ignore-scripts

from n_.

webernir avatar webernir commented on May 18, 2024

i have a similar issue,
Windows, npm 5.3.0, node 8.1.2

npm install -g n_
C:\Program Files\nodejs\n_ -> C:\Program Files\nodejs\node_modules\n_\bin\n_
C:\Program Files\nodejs\n_3 -> C:\Program Files\nodejs\node_modules\n_\bin\n_3

> [email protected] postinstall C:\Program Files\nodejs\node_modules\n_
> npm pack lodash@^3 ; targz extract lodash-3.*.tgz extraneous/lodash3

npm ERR! code EINVALIDTAGNAME
npm ERR! Invalid tag name ";": Tags may not have any characters that encodeURIComponent encodes.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\muUser\AppData\Roaming\npm-cache\_logs\2017-08-17T07_42_39_172Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `npm pack lodash@^3 ; targz extract lodash-3.*.tgz extraneous/lodash3`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\muUser\AppData\Roaming\npm-cache\_logs\2017-08-17T07_42_49_451Z-debug.log

from n_.

borisdiakur avatar borisdiakur commented on May 18, 2024

The cause of the error is in the postinstall script which is currently not windows compatible: https://github.com/borisdiakur/n_/blob/master/package.json#L11

from n_.

webernir avatar webernir commented on May 18, 2024

Thanks @borisdiakur !
is there a way to install, skipping the postinstall script?

from n_.

webernir avatar webernir commented on May 18, 2024

@borisdiakur Thank you. it worked :)

from n_.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.