1
0

Подскажите пожалуйста в чем ошибка при установке Node npm  и gulp

$ npm install
npm WARN saveError ENOENT: no such file or directory, open 'd:\User\Desktop\3\package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open 'd:\User\Desktop\3\package.json'
npm WARN 3 No description
npm WARN 3 No repository field.
npm WARN 3 No README data
npm WARN 3 No license field.

up to date in 0.683s
found 0 vulnerabilities


User@DESKTOP-N034SQ8 MINGW64 /d/User/Desktop/3 (main)
$ node --v
C:/Program Files/nodejs/node.exe: bad option: --v

User@DESKTOP-N034SQ8 MINGW64 /d/User/Desktop/3 (main)
$ npm --v
6.14.15

User@DESKTOP-N034SQ8 MINGW64 /d/User/Desktop/3 (main)
$ node
Welcome to Node.js v14.17.6.
Type ".help" for more information.
> node -v
Uncaught ReferenceError: node is not defined
> console.log("11")
11
undefined
> npm init
npm should be run outside of the Node.js REPL, in your normal shell.
(Press Ctrl+D to exit.)
> npm install --save-dev gulp
npm should be run outside of the Node.js REPL, in your normal shell.
(Press Ctrl+D to exit.)
> gulp --version
gulp --version
^^^^^^^

Uncaught SyntaxError: Unexpected identifier
> function defaultTask(cb) {
... // place code for your default task here
... cb();
... }
undefined
>
> exports.default = defaultTask
Uncaught ReferenceError: exports is not defined
> gulp
Uncaught ReferenceError: gulp is not defined
>


student_ySmbp855
3 years ago






Еще нет ответов