jfoclpf / cordova-import-npm Goto Github PK
View Code? Open in Web Editor NEWImport files from npm packages into your cordova www directory automatically, upon cordova prepare or cordova build
License: GNU General Public License v3.0
Import files from npm packages into your cordova www directory automatically, upon cordova prepare or cordova build
License: GNU General Public License v3.0
Hi,
when you initialize the package, it adds the hook in the config file. However, on Windows, it writes the hook path using "": if you later compile the project on a MacOS (or Linux), the hook will be skipped because it doesn't found the hook.
You should always use the "/" as path separator: it works both on Windows and MacOS (or Linux).
Thank you!
Hi,
I am trying to install cordova-import-npm in my cordova project on Windows.
First I had to run npm install cordova-import-npm
multiple times because I got errors regarding failed renames
Logs here:
2021-07-01T10_04_59_498Z-debug.log
2021-07-01T10_04_52_738Z-debug.log
but eventually npm install succeeded.
Now when trying to run npx.cmd setup-cordova-import-npm
I get the following error message:
Setup script called from undefined
internal/validators.js:124
throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
^
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
at validateString (internal/validators.js:124:11)
at Object.join (path.js:424:7)
at Object.<anonymous> (D:\alex\Dropbox\Dropbox\Projects\phonegap\BeginningNFC\NdefReader\node_modules\cordova-import-npm\scripts\setupCordovaImportNpm.js:23:10)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
at internal/main/run_main_module.js:17:47 {
code: 'ERR_INVALID_ARG_TYPE'
}
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.