Comments (4)
It's added automatically by npm during publish because it detects no existing install
script but it finds a binding.gyp
file. You can see an old issue where folks had similar problems here: #5234
from cli.
If it's helpful, here are the manifests before/after including fullMetadata: true
Without `fullMetadata: true`
{
name: 'fsevents',
version: '2.3.3',
devDependencies: { 'node-gyp': '^9.4.0' },
dist: {
integrity: 'sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==',
shasum: 'cac6407785d03675a2a5e1a5305c697b347d90d6',
tarball: 'https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz',
fileCount: 6,
unpackedSize: 173224,
signatures: [ [Object] ]
},
engines: { node: '^8.16.0 || ^10.6.0 || >=11.0.0' },
os: [ 'darwin' ],
hasInstallScript: true,
_id: '[email protected]',
_resolved: 'https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz',
_from: 'fsevents@~2.3.2',
_integrity: 'sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==',
_signatures: [
{
keyid: 'SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA',
sig: 'MEUCIBqKmzRJwFJcSLXc/SdNTdFsUQvsS/tX+pFHr2JkniDbAiEAiTjoxV3W2IK2g8Udbes/ZP46+TtL40PX3IX/bxosfWs='
}
]
}
With `fullMetadata: true`
{
name: 'fsevents',
version: '2.3.3',
description: 'Native Access to MacOS FSEvents',
main: 'fsevents.js',
types: 'fsevents.d.ts',
os: [ 'darwin' ],
engines: { node: '^8.16.0 || ^10.6.0 || >=11.0.0' },
scripts: {
clean: 'node-gyp clean && rm -f fsevents.node',
build: 'node-gyp clean && rm -f fsevents.node && node-gyp rebuild && node-gyp clean',
test: '/bin/bash ./test.sh 2>/dev/null',
prepublishOnly: 'npm run build',
install: 'node-gyp rebuild'
},
repository: { type: 'git', url: 'git+https://github.com/fsevents/fsevents.git' },
keywords: [ 'fsevents', 'mac' ],
contributors: [
{ name: 'Philipp Dunkel', email: '[email protected]' },
{ name: 'Ben Noordhuis', email: '[email protected]' },
{ name: 'Elan Shankar', email: '[email protected]' },
{ name: 'Miroslav Bajtoš', email: '[email protected]' },
{ name: 'Paul Miller', url: 'https://paulmillr.com' }
],
bugs: { url: 'https://github.com/fsevents/fsevents/issues' },
homepage: 'https://github.com/fsevents/fsevents',
devDependencies: { 'node-gyp': '^9.4.0' },
gypfile: true,
gitHead: '2db891e51aa0f2975c5eaaf6aa30f13d720a830a',
_id: '[email protected]',
_nodeVersion: '18.17.1',
_npmVersion: '9.6.7',
dist: {
integrity: 'sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==',
shasum: 'cac6407785d03675a2a5e1a5305c697b347d90d6',
tarball: 'https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz',
fileCount: 6,
unpackedSize: 173224,
signatures: [ [Object] ]
},
_npmUser: { name: 'pipobscure', email: '[email protected]' },
directories: {},
maintainers: [
{ name: 'pipobscure', email: '[email protected]' },
{ name: 'paulmillr', email: '[email protected]' }
],
_npmOperationalInternal: {
host: 's3://npm-registry-packages',
tmp: 'tmp/fsevents_2.3.3_1692635062642_0.01197687980904627'
},
_hasShrinkwrap: false,
_time: '2023-08-21T16:24:22.854Z',
_resolved: 'https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz',
_from: 'fsevents@~2.3.2',
_integrity: 'sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==',
_signatures: [
{
keyid: 'SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA',
sig: 'MEUCIBqKmzRJwFJcSLXc/SdNTdFsUQvsS/tX+pFHr2JkniDbAiEAiTjoxV3W2IK2g8Udbes/ZP46+TtL40PX3IX/bxosfWs='
}
]
}
from cli.
This appears to have been working by accident before. The minified packument does not have scripts
which likely means that any package that required a build step would not work globally if we reverted that line.
This is still a bug, but the bug is that this should not be failing in global mode. Local mode gracefully catches this:
npm info run [email protected] install node_modules/fsevents node-gyp rebuild
npm info run [email protected] install { code: 1, signal: null }
npm verb reify failed optional dependency /Users/wraithgar/Development/npm/scratch/optional/node_modules/fsevents
npm info run [email protected] postinstall node_modules/nativescript node postinstall.js
npm info run [email protected] postinstall { code: 0, signal: null }
from cli.
Thanks for confirming, indeed that sounds more reasonable as an explanation - I wouldn't expect optional dependencies to fail a global install.
I do wonder when that install: 'node-gyp rebuild'
is being added however, because it's not in the published package.json
of fsevents
:
"scripts": {
"clean": "node-gyp clean && rm -f fsevents.node",
"build": "node-gyp clean && rm -f fsevents.node && node-gyp rebuild && node-gyp clean",
"test": "/bin/bash ./test.sh 2>/dev/null",
"prepublishOnly": "npm run build"
},
(from https://www.npmjs.com/package/fsevents?activeTab=code)
from cli.
Related Issues (20)
- [BUG] npx does not respect version range if a compatible version is found inside any package installed globally HOT 7
- [BUG] Npm incorrectly reads parameters in Powershell terminal (Node 20.13.0) HOT 1
- [DOCS] npm removal using make, no Makefile in project directory HOT 5
- [BUG] `npm update` hangs for some dependencies for `npm>=10.4.0`
- [BUG] Invalid package name ".DS_Store" HOT 16
- [BUG] NPM install seems to scope down os/arch of images in `package-lock.js` to only what exists in `node_modules` HOT 1
- [BUG] config prefix cannot be changed from project config in ~/.npmrc HOT 13
- [BUG] .npmignore does not handle .npmrc as expected HOT 2
- [BUG] `npm` sometimes unexpected overrides peer dependencies, resulting in an invalid tree HOT 1
- [BUG] Throw err 'package/lib/cli/validate-engines.js:31' HOT 1
- [BUG] Ctrl-C / SIGINT kills NPM while the Node app keeps running in the background
- [BUG] minimatch warning HOT 2
- [BUG] `npm pack` doesn't match directory prefiex (`dist-*` doesn't match `dist-cjs/index.js`) HOT 20
- [BUG] <title>
- [BUG] <title>
- [BUG] Fatal error Check failed: VerifyChecksum(blob) HOT 3
- [BUG] Npm install not sending accept: 'application/vnd.npm.install-v1+json' header HOT 4
- [BUG] Wrong lock file modification for optional dependency
- npm ERR! Exit handler never called![BUG] <title> HOT 1
- [BUG] Can not get `npm ls` to show origin of an optional dependency HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.