-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
If I install (locally), a subfolder called spacy is generated with its modules, an outdated one.
spacy-js/node_modules/whatwg-url
node_modules/spacy/node_modules/whatwg-url/lib/url-state-machine.js:2:18
const punycode = require("punycode");If I replace the folder manually the error is fixed.
Full error:
npm install spacy
added 5 packages in 815ms
~/Desktop/otro/js/spacy-js
node --trace-deprecation
Welcome to Node.js v21.7.2.
Type ".help" for more information.
>
(To exit, press Ctrl+C again or Ctrl+D or type .exit)
>
~/Desktop/otro/js/spacy-js
node --trace-deprecation
Welcome to Node.js v21.7.2.
Type ".help" for more information.
> require("spacy")
{
Doc: [Getter],
Token: [Getter],
Span: [Getter],
default: { load: [Function: load] }
}
> (node:522363) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
at node:punycode:3:9
at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/realm:398:7)
at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/realm:337:10)
at loadBuiltinModule (node:internal/modules/helpers:104:7)
at Module._load (node:internal/modules/cjs/loader:999:17)
at Module.require (node:internal/modules/cjs/loader:1230:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (/mnt/sda2/otro/js/spacy-js/node_modules/whatwg-url/lib/url-state-machine.js:2:18)
at Module._compile (node:internal/modules/cjs/loader:1368:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1426:10)
(To exit, press Ctrl+C again or Ctrl+D or type .exit)
>
~/Desktop/otro/js/spacy-js
npm install whatwg-url
added 4 packages, changed 3 packages, and audited 10 packages in 10s
found 0 vulnerabilities
~/Desktop/otro/js/spacy-js
node --trace-deprecation
Welcome to Node.js v21.7.2.
Type ".help" for more information.
> require("spacy")
{
Doc: [Getter],
Token: [Getter],
Span: [Getter],
default: { load: [Function: load] }
}
> (node:522527) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
at node:punycode:3:9
at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/realm:398:7)
at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/realm:337:10)
at loadBuiltinModule (node:internal/modules/helpers:104:7)
at Module._load (node:internal/modules/cjs/loader:999:17)
at Module.require (node:internal/modules/cjs/loader:1230:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (/mnt/sda2/otro/js/spacy-js/node_modules/node-fetch/node_modules/whatwg-url/lib/url-state-machine.js:2:18)
at Module._compile (node:internal/modules/cjs/loader:1368:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1426:10)
(To exit, press Ctrl+C again or Ctrl+D or type .exit)
>
~/Desktop/otro/js/spacy-js
npm install node-fetch
added 9 packages, removed 3 packages, changed 1 package, and audited 16 packages in 6s
3 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
~/Desktop/otro/js/spacy-js
node --trace-deprecation
Welcome to Node.js v21.7.2.
Type ".help" for more information.
> require("spacy")
{
Doc: [Getter],
Token: [Getter],
Span: [Getter],
default: { load: [Function: load] }
}
> (node:522554) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
at node:punycode:3:9
at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/realm:398:7)
at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/realm:337:10)
at loadBuiltinModule (node:internal/modules/helpers:104:7)
at Module._load (node:internal/modules/cjs/loader:999:17)
at Module.require (node:internal/modules/cjs/loader:1230:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (/mnt/sda2/otro/js/spacy-js/node_modules/spacy/node_modules/whatwg-url/lib/url-state-machine.js:2:18)
at Module._compile (node:internal/modules/cjs/loader:1368:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1426:10)
(To exit, press Ctrl+C again or Ctrl+D or type .exit)
>
~/Desktop/otro/js/spacy-js
ln -svfr node_modules/whatwg-url node_modules/spacy/node_modules/whatwg-url
'node_modules/spacy/node_modules/whatwg-url/whatwg-url' -> '../../../whatwg-url'
~/Desktop/otro/js/spacy-js
node --trace-deprecation
Welcome to Node.js v21.7.2.
Type ".help" for more information.
> require("spacy")
{
Doc: [Getter],
Token: [Getter],
Span: [Getter],
default: { load: [Function: load] }
}
> (node:522601) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
at node:punycode:3:9
at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/realm:398:7)
at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/realm:337:10)
at loadBuiltinModule (node:internal/modules/helpers:104:7)
at Module._load (node:internal/modules/cjs/loader:999:17)
at Module.require (node:internal/modules/cjs/loader:1230:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (/mnt/sda2/otro/js/spacy-js/node_modules/spacy/node_modules/whatwg-url/lib/url-state-machine.js:2:18)
at Module._compile (node:internal/modules/cjs/loader:1368:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1426:10)
(To exit, press Ctrl+C again or Ctrl+D or type .exit)
>
~/Desktop/otro/js/spacy-js
ln -svfr node_modules/whatwg-url node_modules/spacy/node_modules
ln: node_modules/spacy/node_modules/whatwg-url: no se puede sobreescribir un directorio
~/Desktop/otro/js/spacy-js
rm && node_modules/spacy/node_modules/w ; ln -svfr node_modules/whatwg-url node_modules/spacy/node_modules
webidl-conversions/ whatwg-url/
~/Desktop/otro/js/spacy-js
rm && node_modules/spacy/node_modules/whatwg-url && ln -svfr node_modules/whatwg-url node_modules/spacy/node_modules
rm: falta un operando
Pruebe 'rm --help' para más información.
~/Desktop/otro/js/spacy-js
rm node_modules/spacy/node_modules/whatwg-url && ln -svfr node_modules/whatwg-url node_modules/spacy/node_modules
rm: no se puede borrar 'node_modules/spacy/node_modules/whatwg-url': Es un directorio
~/Desktop/otro/js/spacy-js
rm -rvf node_modules/spacy/node_modules/whatwg-url && ln -svfr node_modules/whatwg-url node_modules/spacy/node_modules
'node_modules/spacy/node_modules/whatwg-url/README.md' borrado
'node_modules/spacy/node_modules/whatwg-url/LICENSE.txt' borrado
'node_modules/spacy/node_modules/whatwg-url/lib/URL-impl.js' borrado
'node_modules/spacy/node_modules/whatwg-url/lib/public-api.js' borrado
'node_modules/spacy/node_modules/whatwg-url/lib/URL.js' borrado
'node_modules/spacy/node_modules/whatwg-url/lib/url-state-machine.js' borrado
'node_modules/spacy/node_modules/whatwg-url/lib/utils.js' borrado
removed directory 'node_modules/spacy/node_modules/whatwg-url/lib'
'node_modules/spacy/node_modules/whatwg-url/package.json' borrado
removed directory 'node_modules/spacy/node_modules/whatwg-url'
'node_modules/spacy/node_modules/whatwg-url' -> '../../whatwg-url'
~/Desktop/otro/js/spacy-js
node --trace-deprecation
Welcome to Node.js v21.7.2.
Type ".help" for more information.
> require("spacy")
{
Doc: [Getter],
Token: [Getter],
Span: [Getter],
default: { load: [Function: load] }
}
>
(To exit, press Ctrl+C again or Ctrl+D or type .exit)
> Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels