Comments (9)
@ss-marie the error message reads like you’re trying to install the package in a package which is using the same name. Try renaming your package / directory to a different than "ikea-availability-checker".
from ikea-availability-checker.
Just to be sure I tried it myself:
➜ npm install ikea-availability-checker
npm ERR! code ENOSELF
npm ERR! Refusing to install package with name "ikea-availability-checker" under a package
npm ERR! also called "ikea-availability-checker". Did you name your project the same
npm ERR! as the dependency you're installing?
npm ERR!
npm ERR! For more information, see:
npm ERR! <https://docs.npmjs.com/cli/install#limitations-of-npms-install-algorithm>
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ephigenia/.npm/_logs/2020-08-17T15_59_23_445Z-debug.log
See: https://www.google.com/search?q=code+ENOSELF
from ikea-availability-checker.
@Ephigenia The directory name was originally the default after cloning from GitHub, "ikea-availability-checker". I renamed the directory but I am still getting the same error.
I have also tried renaming the package name inside package.json. In that case, the install command succeeds. However then when running the app with npm run start -- stores at
I get the following error, so I don't think I can resolve the issue by renaming the app.
[email protected] start C:\Users\ssmarie\Documents\GitHub\ikea-availability-checker-folder
node $npm_package_main "stores" "at"
internal/modules/cjs/loader.js:1083
throw err;
^Error: Cannot find module 'C:\Users\ssmarie\Documents\GitHub\ikea-availability-checker-folder$npm_package_main'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1080:15)
at Function.Module._load (internal/modules/cjs/loader.js:923:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
from ikea-availability-checker.
@ss-marie if you cloned the repo you won’t need to install it via npm install ikea-availability-checker
as the directory already contains the sources of the project.
from ikea-availability-checker.
@Ephigenia Thanks for your response. Unfortunately even if I leave the package and app name the same as the default after cloning the source, I am unable to run the app using npm i
and npm run start -- stores at
as I get the same error above with code MODULE_NOT_FOUND.
from ikea-availability-checker.
I only can make assumptions here as I’m not sure what you're planning to do. The things you wrote either read as if you’re planning to contribute something to the project (by mentioning "clone") - on the other hand it seemed like you’re have a modified package.json
in the cloned project which would conflict with your plans.
If you’re trying to contribute, I assume that you’d do the following:
git clone https://github.com/Ephigenia/ikea-availability-checker.git
cd ikea-availability-checker;
npm run start -- --help
if you’re trying to install the tool and run in without installing it globally (npm install -g …
), in that case you’d have to call the alias that is created by npm:
mkdir ikea-availability-checker-test;
cd ikea-availability-checker-test;
npm install kea-availability-checker;
node_modules/.bin/ikea-availability;
from ikea-availability-checker.
It looks like the README.md is not clear about this. I’ll try to make an update to get this more clear.
from ikea-availability-checker.
@ss-marie please check the README on the development branch: https://github.com/Ephigenia/ikea-availability-checker/tree/development
Does it get more clear now?
I’d be happy if you could confirm - also that everything is fine for you now - to be able to close this issue?
from ikea-availability-checker.
Closing this now.
from ikea-availability-checker.
Related Issues (20)
- 403 for all request to US stores HOT 15
- undefined "stock" in alpha version HOT 1
- undefined store for fr country HOT 3
- ERR_HTTP_403 with pl country HOT 4
- Error "ERR_HTTP_403" on 2.0.0-alpha.1 version HOT 10
- The automated release is failing 🚨
- The automated release is failing 🚨 HOT 2
- Help HOT 1
- 403 Error / Deprecated on Alpha 5 HOT 12
- smoke test for all countries HOT 1
- recurring smoke test (cron) HOT 7
- get stores from meta files HOT 7
- get list of countries from JS file
- bug: ERR_HTTP_403 on country KR using npx HOT 1
- bug: France store 518 metadata fix HOT 1
- Typescript support HOT 1
- Wrong Coordinates for store in Karlsruhe HOT 1
- SyntaxError: Unexpected token '.' HOT 3
- 403 for all request to BE stores HOT 6
- Szczecin store not visible in the software 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 ikea-availability-checker.