Tag:npm
NPM install lifecycle scripts (preinstall, install, postinstall) not being called for your package?
If you just added one of these lifecycle scripts to your package and published the changes to a registry:
In package-lock.json
of the project that consumes your package as a dependency, ensure your package has "hasInstallScript": true
. On npm ci
or npm install
, npm
looks for the existence of this flag in package-lock.json
rather than scanning each library… Read more
Ionic 3: ionic start -n … if you use spaces in the project name, npm dependencies will not install
Just a warning for those migrating to or starting to develop with Ionic 3 framework, if you create a new project with illegal characters in a package.json “name”, npm dependencies will not install.
You might encounter an error right away when performing “ionic serve” or “ionic cordova run” like:
Error: Cannot find… Read more