I store my npm package in private repo inside CodeArtifacts. My package uses a bunch of external dependencies.
package.json
"dependencies": {
"dayjs": "^1.11.3",
"lodash.merge": "^4.6.2",
"maska": "^1.5.0",
"nanoid": "^4.0.0",
"pinia": "^2.0.14",
"pug": "^3.0.2",
"pug-plain-loader": "^1.1.0",
"sass": "^1.52.3",
"sass-loader": "^13.0.0",
"vue": "^3.2.37"
},
So, the problem is that I cannot install this package in my projects because I got this error:
npm ERR! code E404
npm ERR! 404 Not Found - GET https://repo-address.amazonaws.com/npm/repo/lodash.merge - Package, 'lodash.merge', not found.
npm ERR! 404
npm ERR! 404 'lodash.merge#^4.6.2' is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
Why npm trying to install these dependencies from my repo? I don't think I have to copy all the dependencies to my repo.
Related
Having an issue with my EBS deployment. Getting this output everytime it tries to deploy the build.
Application deployment failed at 2018-07-02T02:46:14Z with exit status 1 and error: command npm_install_bower in .ebextensions/bower.config failed.
npm http GET https://registry.npmjs.org/bower
npm http GET https://registry.npmjs.org/bower
npm http GET https://registry.npmjs.org/bower
npm ERR! Error: UNABLE_TO_GET_ISSUER_CERT_LOCALLY
npm ERR! at SecurePair.<anonymous> (tls.js:1430:32)
npm ERR! at SecurePair.emit (events.js:92:17)
npm ERR! at SecurePair.maybeInitFinished (tls.js:1029:10)
npm ERR! at CleartextStream.read [as _read] (tls.js:521:13)
npm ERR! at CleartextStream.Readable.read (_stream_readable.js:341:10)
npm ERR! at EncryptedStream.write [as _write] (tls.js:418:25)
npm ERR! at doWrite (_stream_writable.js:226:10)
npm ERR! at writeOrBuffer (_stream_writable.js:216:5)
npm ERR! at EncryptedStream.Writable.write (_stream_writable.js:183:11)
npm ERR! at write (_stream_readable.js:602:24)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR! System Linux 4.14.47-56.37.amzn1.x86_64
npm ERR! command "node" "/usr/bin/npm" "install" "-g" "bower"
npm ERR! cwd /opt/elasticbeanstalk/eb_infra
npm ERR! node -v v0.10.48
npm ERR! npm -v 1.3.6
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /opt/elasticbeanstalk/eb_infra/npm-debug.log
npm ERR! not ok code 0.
bower.config file is:
commands:
get_sudo:
command: echo Defaults:root \!requiretty >> /etc/sudoers
npm_install:
command: sudo yum -y --enablerepo=epel install nodejs npm
npm_install_bower:
command: sudo npm install -g bower
container_commands:
01_bower_install:
command: "export PATH=$PATH; $NODE_HOME/bin/node ./node_modules/bowe/bin/bower -V install --allow-root -F > /tmp/01_bower_install.log"
Tried it without 01_bower_install part as well but same result. Fails to deploy. Was working fine until 2 days ago on the instance and now showing:
Forbidden You don't have permission to access / on this server.
..on the URL.
Help greatly appreciated!
I spent few hours today on the same issue, bower would not be installed by npm and would not run. Eventually got it work as follows:
1) remove "bower" from package.json
2) here is my ebextension file that managed to install bower and run it, by making it a global command:
container_commands:
install_bower:
command: "export PATH=$PATH:$NODE_HOME/bin; npm install bower -g; bower install --allow-root"
Cheers,
Z.
I have tried to implement laravel passport authentication in my project, but it's not working. Initially, i have installed laravel5.5 with other configuration and file permissions all the stuff.
To implement passport authentication I have followed laravel documentation Document Url
Following steps, I have done,
composer require laravel/passport
php artisan migrate
php artisan passport:install
I have added this line App\User
use Laravel\Passport\HasApiTokens;
use HasApiTokens, Notifiable;
Routes Added in AuthServiceProvider file inside the boot function
Passport::routes();
Inside the config/auth.php file, I have changed API driver as passport
php artisan vendor:publish --tag=passport-components
Inside this file resources/assets/js/app.js
Vue.component(
'passport-clients',
require('./components/passport/Clients.vue')
);
Vue.component(
'passport-authorized-clients',
require('./components/passport/AuthorizedClients.vue')
);
Vue.component(
'passport-personal-access-tokens',
require('./components/passport/PersonalAccessTokens.vue')
);
npm run dev
When running this command I'm getting an error
$ npm run dev
# dev /var/www/html/local/laravel5.5
npm run development
# development /var/www/html/local/laravel5.5
cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
sh: 1: cross-env: not found
npm ERR! Linux 4.4.0-98-generic
npm ERR! argv "/home/sysadmin/.nvm/versions/node/v6.11.1/bin/node" "/home/sysadmin/.nvm/versions/node/v6.11.1/bin/npm" "run" "development"
npm ERR! node v6.11.1
npm ERR! npm v3.10.10
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! # development: cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the # development script 'cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! Please include the following file with any support request:
npm ERR! /var/www/html/local/laravel5.5/npm-debug.log
npm ERR! Linux 4.4.0-98-generic
npm ERR! argv "/home/sysadmin/.nvm/versions/node/v6.11.1/bin/node" "/home/sysadmin/.nvm/versions/node/v6.11.1/bin/npm" "run" "dev"
npm ERR! node v6.11.1
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! # dev: npm run development
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the # dev script 'npm run development'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run development
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! Please include the following file with any support request:
npm ERR! /var/www/html/local/laravel5.5/npm-debug.log
You must run in cmd/terminal, from your project folder
npm install --save
and then
npm run dev
i am updating the ionic version to latest, i try to run the my old project i am getting this errors
'ionic-app-scripts' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\user\AppData\R
oaming\npm\node_modules\npm\bin\npm-cli.js" "run" "ionic:serve" "--" "--v2"
"--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"
npm ERR! node v7.2.0
npm ERR! npm v4.0.5
npm ERR! code ELIFECYCLE
npm ERR! ionic-hello-world# ionic:serve: ionic-app-scripts serve "--v2" "--addr
ess" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ionic-hello-world# ionic:serve script 'ionic-app-scripts
serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ionic-hello-world pac
kage,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100
" "--livereload-port" "35729"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ionic-hello-world
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ionic-hello-world
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\user\Desktop\demoProj\npm-debug.log
There was an error serving your Ionic application: There was an error with the s
pawned command: serve
Hi please see my answer to this question:
'ionic-app-scripts' is not recognized as an internal or external command,
As stated in the answer, my problem was that I was trying to transfer a project from a mac to a windows machine.
I had some computer issue, and when I tried to ng serve my ionic 2 app I received this error:
c:\xampp\htdocs\themill>ionic serve
ionic-hello-world# ionic:serve c:\xampp\htdocs\themill
ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"
'ionic-app-scripts' is not recognized as an internal or external
command, operable program or batch file.
npm ERR! Windows_NT 10.0.14393 npm ERR! argv "C:\Program
Files\nodejs\node.exe"
"C:\Users\home\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js"
"run" "ionic:serve" "--" "--v2" "--address" "0.0.0.0" "--port" "8100"
"--livereload-port" "35729" npm ERR! node v6.9.2 npm ERR! npm v4.0.2
npm ERR! code ELIFECYCLE npm ERR! ionic-hello-world# ionic:serve:
ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100"
"--livereload-port" "35729" npm ERR! Exit status 1 npm ERR! npm ERR!
Failed at the ionic-hello-world# ionic:serve script 'ionic-app-scripts
serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port"
"35729"'. npm ERR! Make sure you have the latest version of node.js
and npm installed. npm ERR! If you do, this is most likely a problem
with the ionic-hello-world package, npm ERR! not with npm itself. npm
ERR! Tell the author that this fails on your system: npm ERR!
ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100"
"--livereload-port" "35729"
I tried to unistall, install, install globally, but it didn't solve.
Any ideas what's wrong?
Windows 10.
In my case the problem was that I was working on a mac and attempted to transfer the project to a windows 10 machine. Steps to follow:
In your terminal, navigate to the ionic project's root folder
Run this command: npm install #ionic/app-scripts#latest --save-dev
Run npm rebuild node-sass to build the binding for your current environment.
I don't know what your case is but in my case, the above steps worked.
If your case is different, perhaps the documentaion here:
https://www.npmjs.com/package/#ionic/app-scripts
will help you get started.
What worked for me was simply deleting the node_modules folder and re-initilaising npm i
Not sure how it got into that state in the first place
npm install ember-cli#0.0.40
returns E404. I know that it is too old version, but i should work any way. Should I install anything else? (0.0.44 works fine)
Any solution?
here is full output :
npm ERR! Windows_NT 6.3.9600 npm ERR! argv "C:\Program
Files\nodejs\node.exe" "C:\Program Files\nodejs\
node_modules\npm\bin\npm-cli.js" "install" "ember-cli#0.0.40" npm
ERR! node v4.3.1 npm ERR! npm v2.14.12 npm ERR! code E404
npm ERR! 404 Registry returned 404 for GET on
https://registry.npmjs.org/express s npm ERR! 404 npm ERR! 404
'expresss' is not in the npm registry. npm ERR! 404 You should bug the
author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'ember-cli' npm ERR!
404 npm ERR! 404 Note that you can also install from a npm ERR! 404
tarball, folder, http url, or git url.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Windows\system32\npm-debug.log
here is npm version output:
{ npm: '2.14.12', ares: '1.10.1-DEV', http_parser: '2.5.2', icu:
'56.1', modules: '46', node: '4.3.1', openssl: '1.0.2f', uv:
'1.8.0', v8: '4.5.103.35', zlib: '1.2.8' }
You can download the package from the bottom of this page https://github.com/ember-cli/ember-cli/releases/tag/v0.0.40
Then you look up npm documentation on how to install from a file.