Sorry name can only contain url friendly characters

Krzysztof Wilk staff asked 3 years ago

Hello. I'm doing tutorials from mdbootstrap.com and I stopped on chapter "Gulp & Customization" from Responsive Web Design because of some issues. I can't install Gulp properly. I did everything step by step like in tutorial, but it doesn't work. When I type npm install gulp -g into Git Bash, It shows me less then half of text, that It was in tutorial video, and a warning, I think. Then if I click on my gulp pro package, choose "Git bash here" and type first npm init, then npm --save-dev gulp it shows me just Sorry, name can only contain URL-friendly characters., but I think it's chain reaction. I tried on other laptop with Windows 8.1, I reinstalled it but It didn't work. What should I do? I attach screens from Git Bash, that contains process of installation and initialization.

Sorry name can only contain url friendly characters

Sorry name can only contain url friendly characters


king

Guest

  • #1

king Asks: Creating a NPM package like [name]/[second_name] ? name can only contain URL-friendly characters. where is the "[second_name]" added?
When I try to create a NPM package, can someone explain how to add a package to something after the slash?

So for example, if you create a package, you use:

then when you fill out the name, it constantly gives an error saying, name can only contain URL-friendly characters if I incldue a "/" in it when selecting the name.

If I change the NPM name, say I make it:

I can upload it to NPM package repository.

But If I add

It will say the name contains illegal characters. You cannot use anything with a "/" in the name.

So can someone please explain to me, how does the "/testname2" get added to a NPM package name? I have searched google for hours trying to find it.

The best I could find was here: Creating Node.js modules | npm Docs

For "scoped modules" you can add

Code:

npm init --scope=@scope-name

via About scopes | npm Docs

However, when I run this, it does not change the package.json file. The file still looks identical to to other one with no reference to the "scoped" name of the parent file.

Is whatever is after the "/" a file within the parent directory?

SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, solveforum.

/forums/whats-new/news-feed

  • SigmaCloud
  • 3 minutes ago
  • Technology Forum
  • Replies: 0

SigmaCloud Asks: Add a custom resource type to google cloud
We want to onboard our service to GCP and want customers to be able interact with our service via google cloud console. Essentially, we would like external users to be able to perform CRUD on our resource type(backed by our API service).

What we are trying to do with GCP is similar to a custom resource type in aws.

So far, I have found this as a starting point, but I don't think this method will allow us to publish our resource type to external GCP users.

Can someone please help with this?

SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your thoughts here to help others.

  • Jacky
  • 3 minutes ago
  • Technology Forum
  • Replies: 0

Jacky Asks: AWS rds high CPU utilization
I'm facing high CPU issue, and I am aware of what caused the problem: I have a job that copy a huge amount of data from snowflake to aws rds. During this job running, I can see the aws rds CPU usage spikes, as well as the read/write throughput. What should I do to reduce/limit the cpu usage during that job running? Is there any configuration that I can tweak?

SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your thoughts here to help others.

  • Lohan Vidanage
  • 3 minutes ago
  • Technology Forum
  • Replies: 0

Lohan Vidanage Asks: How to add attendees email from list in Google Calendar API
I have trouble adding emails from a list which has some user input emails into the event. Below is a function I made which will create an event;

Code:

    def submit():
        summary = title.get()
        location = local.get()
        s_date = start_date.get()
        s_time = start_time.get()
        final_s_date = s_date + "T" + s_time + ":00"
        e_date = end_date.get()
        e_time = end_time.get()
        final_e_date = e_date + "T" + e_time + ":00"
        service2 = get_calendar_api()
        event = {
            'summary': summary,
            'location': location,
            'description': 'Empty',
            'start': {
                'dateTime': final_s_date,
                'timeZone': 'Asia/Kuala_Lumpur',
            },
            'end': {
                'dateTime': final_e_date,
                'timeZone': 'Asia/Kuala_Lumpur',
            },
            'attendees': [
                {'email': ''},
            ],
        }
        # print(attends) -> ['', '', '']
        service2.events().insert(calendarId='primary', body=event).execute()

I have a list "attends" which holds the user input emails and I am not sure how I can extract the emails in the list and then pass the emails into the event object so I can add attendees. Below is the "attends" list.

Code:

['', '', '']

I am also not great at Python :')

SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your thoughts here to help others.

  • ccc
  • 3 minutes ago
  • Technology Forum
  • Replies: 0

ccc Asks: How can I record data when it is deleted?
I am currently using JPA Auditing, Envers for Spring Boot project.

I want to save the record when the data is deleted.

So I discovered @SQLDelete Annotation But @SQLDelete Annotation doesn't apply to grammar written in JPQL

Is there a way to save the deletion history that is also applicable to JPQL grammar?

SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your thoughts here to help others.

  • Jack
  • 3 minutes ago
  • Technology Forum
  • Replies: 0

Jack Asks: java swt application embed libreoffice writer
Help.

I currently write a java swt(gtk_x86_64) application on OpenSuse.

I need embed the libreoffice(or openoffice) writer window to show some documnets.

I tried many ways that all doe's not working. finally i decided codeing a JNI cpp project set libreoffice writer window's parent to the java swt widget by use the c gtk+-2.0 functions.

Seems it's to be successful, but I get two writer windows, and I only want the embedded one. And they are actually one, if I minimize the outer one, the embedded one will not accept keyboard input, and if I click on the embedded window's menu or toolbar, the minimized outer one will be reactivated.

Below is the code snippet to start libreoffice and set the writer window's parent via JNI:

Code:

//omit bootstrap libreoffice and get XComponentLoader object code......

Composite panelParent= new Composite(shell, SWT.EMBEDDED);

XComponent m_xComponent = xCLoader.loadComponentFromURL("private:factory/swriter","_blank" , 0, szEmptyArgs);
XTextDocument xDoc = UnoRuntime.queryInterface(com.sun.star.text.XTextDocument.class,
                m_xComponent);

XFrame m_frame= xDoc.getCurrentController().getFrame();
XWindow xWin= m_frame.getContainerWindow();
XSystemDependentWindowPeer xSysDepWinPeer=UnoRuntime.queryInterface(XSystemDependentWindowPeer.class, xWin);
byte[] procID = new byte[0];

Object objLinux=xSysDepWinPeer.getWindowHandle(procID,SystemDependent.SYSTEM_XWINDOW);
SystemDependentXWindow  xSysDepWin=(SystemDependentXWindow) objLinux;
// the lparent is swt GtkWidget*
lparent=panelParent.handle;
//the lchild is XLib Window obj
lchild=xSysDepWin.WindowHandle;
long lret= new NativeToolsX11().set_parent_gtk(lparent,lchild);

The following code snippet is the set_parent gtk function in JNI:

Code:

JNIEXPORT jlong JNICALL Java_NativeToolsX11_set_1parent_1gtk(JNIEnv *, jobject job, jlong lparent, jlong lchild){
GtkWidget* pParentWidget = (GtkWidget*)((long)lparent);        
GdkWindow* pParentWindow = gtk_widget_get_window(pParentWidget);
Window WindowChild=(Window)lchild;
GdkDisplay* gd = gdk_display_get_default();
GdkWindow* pWindowChild= gdk_window_foreign_new_for_display(gd,WindowChild);
gdk_window_reparent(pWindowChild, pParentWindow, 0, 0);}

The following figure is a screenshot:

Sorry name can only contain url friendly characters

SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your thoughts here to help others.

Why my npm init is not working?

The Npm command not found error can appear when you install or upgrade npm. On Windows, the cause of this error could be that a PATH or system variable is not correctly set. The error can also occur if you do not have npm or Node. js installed, have an outdated version, or have permission issues.

How do I install npm?

To install a package, npm uses the following algorithm:.
load the existing node_modules tree from disk..
clone the tree..
fetch the package.json and assorted metadata and add it to the clone..
walk the clone and add any missing dependencies..
dependencies will be added as close to the top as is possible..

What is Test Command in npm init?

The test command is the command that is run whenever you call npm test . This is important when integrating with continuous integration/continuous deployment tools (such as jenkins , codeship , teamcity ).