简体   繁体   中英

Node.js explain Errors in REPL?

I tried this

.save myShell.js

that is followed by this error:

Failed to save:myShell.js

why do I get this error ?

I save the situation with the start of the node.js command promt. By windows install you get (so was after install on my sys) some several shortcuts , one with the node.js icon and it's name ist Node.js and another that is called Node.js command promt - if you want to use the .save command to save the session you must to run the "Node.js command prompt". Of course with some more work you can get more.

Permissions issue.

2 options:

  • Run "Node.js" app as administrator (right click on the icon in the start menu "run as admin"
  • Run "Node.js Command Prompt" app and then type "node" which will put you in REPL

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM