GithubHelp home page GithubHelp logo

Comments (4)

andresilvasantos avatar andresilvasantos commented on July 17, 2024

You need to initialize the package.json file first. Please follow this tutorial.
And it is better if you create a folder just for this, for example: /home/user/test, otherwise it is difficult to analyse problems if the working directory is full of other files.

from bitprophet.

9121511 avatar 9121511 commented on July 17, 2024

i run this:
user@user1:~/test/2$ npm init bitprophet
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.

See npm help json for definitive documentation on these fields
and exactly what they do.

Use npm install <pkg> afterwards to install a package and
save it as a dependency in the package.json file.

Press ^C at any time to quit.
package name: (2) bitprophet
version: (1.0.0)
description: dasd
entry point: (index.js)
test command: help
git repository: https://www.npmjs.com/package/bitprophet
keywords: bot
author: fds
license: (ISC)
About to write to /home/user/test/2/package.json:

{
"name": "bitprophet",
"version": "1.0.0",
"description": "dasd",
"main": "index.js",
"scripts": {
"test": "help"
},
"repository": {
"type": "git",
"url": "https://www.npmjs.com/package/bitprophet"
},
"keywords": [
"bot"
],
"author": "fds",
"license": "ISC"
}

Is this ok? (yes)
user@user1:~/test/2$

from bitprophet.

andresilvasantos avatar andresilvasantos commented on July 17, 2024

@9121511 did you manage to make it work?

from bitprophet.

aycanurun avatar aycanurun commented on July 17, 2024

root@110:/var/opt/bitprophet-master# npm install bitprophet --save
npm ERR! code ENOSELF
npm ERR! Refusing to install package with name "bitprophet" under a package
npm ERR! also called "bitprophet". 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! /root/.npm/_logs/2021-06-15T19_30_24_447Z-debug.log

from bitprophet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.